LicenseManager.CreateWithContext メソッド

定義

ライセンス コンテキストを使用してオブジェクトの種類のインスタンスを作成します。

オーバーロード

名前 説明
CreateWithContext(Type, LicenseContext)

ライセンスされたインスタンスを使用できるコンテキストを指定して、指定した型のインスタンスを作成します。

CreateWithContext(Type, LicenseContext, Object[])

ライセンスされたインスタンスを使用できるコンテキストを指定して、指定した引数を使用して、指定した型のインスタンスを作成します。

CreateWithContext(Type, LicenseContext)

ライセンスされたインスタンスを使用できるコンテキストを指定して、指定した型のインスタンスを作成します。

public:
 static System::Object ^ CreateWithContext(Type ^ type, System::ComponentModel::LicenseContext ^ creationContext);
public static object CreateWithContext(Type type, System.ComponentModel.LicenseContext creationContext);
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

返品

指定した型のインスタンス。

注釈

creationContext パラメーターとして指定したLicenseContextは、このLicenseの有効期間のCurrentContextとして使用されます。 CreateWithContext メソッドは、AppDomain内の他のすべてのスレッドがCurrentContextを変更するのをブロックし、CreateWithContextがアトミック操作として動作できるようにします。

こちらもご覧ください

適用対象

CreateWithContext(Type, LicenseContext, Object[])

ライセンスされたインスタンスを使用できるコンテキストを指定して、指定した引数を使用して、指定した型のインスタンスを作成します。

public:
 static System::Object ^ CreateWithContext(Type ^ type, System::ComponentModel::LicenseContext ^ creationContext, cli::array <System::Object ^> ^ args);
public static object CreateWithContext(Type type, System.ComponentModel.LicenseContext creationContext, object[] args);
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 型の配列。

返品

引数の指定された配列を持つ指定した型のインスタンス。

注釈

creationContext パラメーターとして指定したLicenseContextは、このLicenseの有効期間のCurrentContextとして使用されます。 このメソッドは、 AppDomain 内の他のすべてのスレッドが CurrentContextを変更するのをブロックし、 CreateWithContext がアトミック操作として動作できるようにします。

こちらもご覧ください

適用対象