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 */
public static LicenseContext get_CurrentContext ()

/** @property */
public static void set_CurrentContext (LicenseContext value)

public static function get CurrentContext () : LicenseContext

public static function set CurrentContext (value : LicenseContext)

Not applicable.

Property Value

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

Exception typeCondition


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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0