LicenseManager.CreateWithContext メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ライセンス コンテキストを使用してオブジェクトの種類のインスタンスを作成します。
オーバーロード
| 名前 | 説明 |
|---|---|
| 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
パラメーター
- creationContext
- LicenseContext
ライセンスされたインスタンスを使用できるタイミングを指定する LicenseContext 。
返品
指定した型のインスタンス。
注釈
creationContext パラメーターとして指定したLicenseContextは、このLicenseの有効期間のCurrentContextとして使用されます。
CreateWithContext メソッドは、AppDomain内の他のすべてのスレッドがCurrentContextを変更するのをブロックし、CreateWithContextがアトミック操作として動作できるようにします。
こちらもご覧ください
- License
- LicenseContext
- LicenseException
- LicenseProvider
- LicenseProviderAttribute
- LicFileLicenseProvider
- LicenseUsageMode
適用対象
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
パラメーター
- creationContext
- LicenseContext
ライセンスされたインスタンスを使用できるタイミングを指定する LicenseContext 。
返品
引数の指定された配列を持つ指定した型のインスタンス。
注釈
creationContext パラメーターとして指定したLicenseContextは、このLicenseの有効期間のCurrentContextとして使用されます。 このメソッドは、 AppDomain 内の他のすべてのスレッドが CurrentContextを変更するのをブロックし、 CreateWithContext がアトミック操作として動作できるようにします。
こちらもご覧ください
- License
- LicenseContext
- LicenseException
- LicenseProvider
- LicenseProviderAttribute
- LicFileLicenseProvider
- LicenseUsageMode