LicenseManager.CreateWithContext Metodo

Definizione

Consente di creare un'istanza di un tipo di oggetto con un contesto di licenza.

Overload

CreateWithContext(Type, LicenseContext)

Consente di creare un'istanza del tipo specificato, dato il contesto in cui è possibile utilizzare l'istanza concessa in licenza.

CreateWithContext(Type, LicenseContext, Object[])

Consente di creare un'istanza del tipo specificato con gli argomenti indicati, dato il contesto in cui è possibile utilizzare l'istanza concessa in licenza.

CreateWithContext(Type, LicenseContext)

Consente di creare un'istanza del tipo specificato, dato il contesto in cui è possibile utilizzare l'istanza concessa in licenza.

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

Parametri

type
Type

Oggetto Type che rappresenta il tipo da creare.

creationContext
LicenseContext

Oggetto LicenseContext che specifica quando è possibile utilizzare l'istanza concessa in licenza.

Restituisce

Istanza del tipo specificato.

Attributi

Commenti

L'oggetto LicenseContextcreationContext specificato come parametro viene usato come CurrentContext oggetto per la vita di questo Licenseoggetto . Il CreateWithContext metodo blocca tutti gli altri thread nell'oggetto AppDomain dalla modifica di CurrentContext, consentendo CreateWithContext di comportarsi come operazione atomica.

Vedi anche

Si applica a

CreateWithContext(Type, LicenseContext, Object[])

Consente di creare un'istanza del tipo specificato con gli argomenti indicati, dato il contesto in cui è possibile utilizzare l'istanza concessa in licenza.

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

Parametri

type
Type

Oggetto Type che rappresenta il tipo da creare.

creationContext
LicenseContext

Oggetto LicenseContext che specifica quando è possibile utilizzare l'istanza concessa in licenza.

args
Object[]

Matrice di tipo Object che rappresenta gli argomenti per il tipo.

Restituisce

Istanza del tipo specificato con la determinata matrice di argomenti.

Attributi

Commenti

L'oggetto LicenseContextcreationContext specificato come parametro viene usato come CurrentContext oggetto per la vita di questo Licenseoggetto . Questo metodo blocca tutti gli altri thread nella AppDomain modifica di CurrentContext, consentendo CreateWithContext di comportarsi come operazione atomica.

Vedi anche

Si applica a