LicenseManager.CurrentContext Propiedad

Definición

Obtiene o establece el objeto actual LicenseContext, que especifica cuándo se puede usar el objeto con licencia.

public:
 static property System::ComponentModel::LicenseContext ^ CurrentContext { System::ComponentModel::LicenseContext ^ get(); void set(System::ComponentModel::LicenseContext ^ value); };
public static System.ComponentModel.LicenseContext CurrentContext { get; set; }
static member CurrentContext : System.ComponentModel.LicenseContext with get, set
Public Shared Property CurrentContext As LicenseContext

Valor de propiedad

LicenseContext que especifica cuándo se puede usar el objeto con licencia.

Excepciones

La CurrentContext propiedad está bloqueada actualmente y no se puede cambiar.

Comentarios

Cuando el usuario solicita un valor válido License, el usuario debe proporcionar el contexto en el que es License válido para el LicenseProvider.GetLicense método . El LicenseContext devuelto por esta propiedad debe pasarse a todas las LicenseProvider clases.

Se aplica a

Consulte también