ICLRRuntimeInfo::BindAsLegacyV2Runtime メソッドICLRRuntimeInfo::BindAsLegacyV2Runtime Method
すべてのレガシ共通言語ランタイム (CLR) バージョン2アクティブ化ポリシーの決定に現在のランタイムをバインドします。Binds the current runtime for all legacy common language runtime (CLR) version 2 activation policy decisions.
構文Syntax
HRESULT BindAsLegacyV2Runtime ();
戻り値Return Value
このメソッドは、次の特定の Hresult を返します。This method returns the following specific HRESULTs:
HRESULTHRESULT | 説明Description |
---|---|
S_OKS_OK | バインドが成功したか、またはこのランタイムが従来の CLR バージョン2アクティブ化ポリシーのランタイムとして既にバインドされています。Either binding succeeded, or this runtime was already bound as the legacy CLR version 2 activation policy runtime. |
CLR_E_SHIM_LEGACYRUNTIMEALREADYBOUNDCLR_E_SHIM_LEGACYRUNTIMEALREADYBOUND | 以前の CLR バージョン2のアクティブ化ポリシーに、別のランタイムが既にバインドされています。A different runtime was already bound to the legacy CLR version 2 activation policy. |
解説Remarks
現在のランタイムが、従来の CLR バージョン2アクティブ化ポリシーの決定 (構成ファイルの要素で属性を使用するなど) に対して既にバインドされている場合 useLegacyV2RuntimeActivationPolicy
、このメソッドはエラー結果を返しません。メソッドが従来のアクティブ化ポリシーに正常にバインドされている場合と同じように、結果が S_OK されます。 <startup> If the current runtime is already bound for all legacy CLR version 2 activation policy decisions (for example, by using the useLegacyV2RuntimeActivationPolicy
attribute on the <startup> element in the configuration file), this method does not return an error result; instead, the result is S_OK, just as it would be if the method had successfully bound legacy activation policy.
要件Requirements
:「システム要件」を参照してください。Platforms: See System Requirements.
ヘッダー: メタホスト .hHeader: MetaHost.h
ライブラリ: MSCorEE.dll にリソースとして含まれていますLibrary: Included as a resource in MSCorEE.dll
.NET Framework のバージョン:4 以降で使用可能Available since 4.NET Framework Versions: 4 以降で使用可能Available since 4