LicenseManager.CreateWithContext Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Crea una instancia de un tipo de objeto con un contexto de licencia.
Sobrecargas
| Nombre | Description |
|---|---|
| CreateWithContext(Type, LicenseContext) |
Crea una instancia del tipo especificado, dado un contexto en el que puede usar la instancia con licencia. |
| CreateWithContext(Type, LicenseContext, Object[]) |
Crea una instancia del tipo especificado con los argumentos especificados, dado un contexto en el que puede usar la instancia con licencia. |
CreateWithContext(Type, LicenseContext)
- Source:
- LicenseManager.cs
- Source:
- LicenseManager.cs
- Source:
- LicenseManager.cs
- Source:
- LicenseManager.cs
- Source:
- LicenseManager.cs
Crea una instancia del tipo especificado, dado un contexto en el que puede usar la instancia con licencia.
public:
static System::Object ^ CreateWithContext(Type ^ type, System::ComponentModel::LicenseContext ^ creationContext);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static object? CreateWithContext(Type type, System.ComponentModel.LicenseContext creationContext);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static object CreateWithContext(Type type, System.ComponentModel.LicenseContext creationContext);
public static object CreateWithContext(Type type, System.ComponentModel.LicenseContext creationContext);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member CreateWithContext : Type * System.ComponentModel.LicenseContext -> obj
static member CreateWithContext : Type * System.ComponentModel.LicenseContext -> obj
Public Shared Function CreateWithContext (type As Type, creationContext As LicenseContext) As Object
Parámetros
- creationContext
- LicenseContext
LicenseContext que especifica cuándo puede usar la instancia con licencia.
Devoluciones
Instancia del tipo especificado.
- Atributos
Comentarios
que LicenseContext especifica como parámetro creationContext se usa como para CurrentContext la vida útil de este Licenseobjeto . El CreateWithContext método bloquea todos los demás subprocesos de la AppDomain modificación de CurrentContext, lo que permite CreateWithContext comportarse como una operación atómica.
Consulte también
- License
- LicenseContext
- LicenseException
- LicenseProvider
- LicenseProviderAttribute
- LicFileLicenseProvider
- LicenseUsageMode
Se aplica a
CreateWithContext(Type, LicenseContext, Object[])
- Source:
- LicenseManager.cs
- Source:
- LicenseManager.cs
- Source:
- LicenseManager.cs
- Source:
- LicenseManager.cs
- Source:
- LicenseManager.cs
Crea una instancia del tipo especificado con los argumentos especificados, dado un contexto en el que puede usar la instancia con licencia.
public:
static System::Object ^ CreateWithContext(Type ^ type, System::ComponentModel::LicenseContext ^ creationContext, cli::array <System::Object ^> ^ args);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static object? CreateWithContext(Type type, System.ComponentModel.LicenseContext creationContext, object[] args);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static object CreateWithContext(Type type, System.ComponentModel.LicenseContext creationContext, object[] args);
public static object CreateWithContext(Type type, System.ComponentModel.LicenseContext creationContext, object[] args);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member CreateWithContext : Type * System.ComponentModel.LicenseContext * obj[] -> obj
static member CreateWithContext : Type * System.ComponentModel.LicenseContext * obj[] -> obj
Public Shared Function CreateWithContext (type As Type, creationContext As LicenseContext, args As Object()) As Object
Parámetros
- creationContext
- LicenseContext
LicenseContext que especifica cuándo puede usar la instancia con licencia.
Devoluciones
Instancia del tipo especificado con la matriz de argumentos especificada.
- Atributos
Comentarios
que LicenseContext especifica como parámetro creationContext se usa como para CurrentContext la vida útil de este Licenseobjeto . Este método impide que todos los demás subprocesos de modifiquen AppDomain , CurrentContextlo que permite CreateWithContext comportarse como una operación atómica.
Consulte también
- License
- LicenseContext
- LicenseException
- LicenseProvider
- LicenseProviderAttribute
- LicFileLicenseProvider
- LicenseUsageMode