LicenseManager.CreateWithContext メソッド

定義

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

オーバーロード

名前 説明
CreateWithContext(Type, LicenseContext)

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

CreateWithContext(Type, LicenseContext, Object[])

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

CreateWithContext(Type, LicenseContext)

ソース:
LicenseManager.cs
ソース:
LicenseManager.cs
ソース:
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
ソース:
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 がアトミック操作として動作できるようにします。

こちらもご覧ください

適用対象