CurrentContext Property
Collapse the table of content
Expand the table of content

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 static LicenseContext CurrentContext { get; set; }

Property Value

Type: System.ComponentModel.LicenseContext

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

Exception Condition

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
© 2016 Microsoft