LicenseManager::CurrentContext Property

 

Gets or sets the current LicenseContext, which specifies when you can use the licensed object.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public:
property LicenseContext^ CurrentContext {
	static LicenseContext^ get();
	static void set(LicenseContext^ value);
}

Property Value

Type: System.ComponentModel::LicenseContext^

A LicenseContext that specifies when you can use the licensed object.

Exception Condition
InvalidOperationException

The CurrentContext property is currently locked and cannot be changed.

When the user requests a valid License, the user must give the context in which the License is valid to the LicenseProvider::GetLicense method. The LicenseContext returned by this property should be passed to all LicenseProvider classes.

.NET Framework
Available since 1.1
Return to top
Show: