LicenseManager.CreateWithContext 方法

定義

建立具有授權內容的物件型別執行個體。

多載

CreateWithContext(Type, LicenseContext)

建立指定型別的執行個體,需指定可以使用授權執行個體的內容。

CreateWithContext(Type, LicenseContext, Object[])

建立具有指定引數的指定型別執行個體,需指定可以使用授權執行個體的內容。

CreateWithContext(Type, LicenseContext)

來源:
LicenseManager.cs
來源:
LicenseManager.cs
來源:
LicenseManager.cs

建立指定型別的執行個體,需指定可以使用授權執行個體的內容。

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

參數

type
Type

Type,表示要建立的型別。

creationContext
LicenseContext

LicenseContext,指定何時可以使用授權執行個體。

傳回

指定型別的執行個體。

屬性

備註

LicenseContext您指定做為 參數的 creationContext ,會用來作為CurrentContext這個 License的存留期。 方法 CreateWithContext 會封鎖 中 AppDomain 所有其他線程修改 CurrentContext,以允許 CreateWithContext 做為不可部分完成的作業。

另請參閱

適用於

CreateWithContext(Type, LicenseContext, Object[])

來源:
LicenseManager.cs
來源:
LicenseManager.cs
來源:
LicenseManager.cs

建立具有指定引數的指定型別執行個體,需指定可以使用授權執行個體的內容。

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

參數

type
Type

Type,表示要建立的型別。

creationContext
LicenseContext

LicenseContext,指定何時可以使用授權執行個體。

args
Object[]

Object 型別的陣列,表示型別的引數。

傳回

具有指定引數陣列的指定型別執行個體。

屬性

備註

LicenseContext您指定做為 參數的 creationContext ,會用來作為CurrentContext這個 License的存留期。 這個方法會封鎖 中的所有 AppDomain 其他線程修改 CurrentContext,以允許 CreateWithContext 做為不可部分完成的作業。

另請參閱

適用於