Assembly.LoadWithPartialName メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
部分名を使用して、アプリケーション ディレクトリまたはグローバル アセンブリ キャッシュからアセンブリを読み込みます。
オーバーロード
| 名前 | 説明 |
|---|---|
| LoadWithPartialName(String) |
古い.
古い.
部分名を使用して、アプリケーション ディレクトリまたはグローバル アセンブリ キャッシュからアセンブリを読み込みます。 |
| LoadWithPartialName(String, Evidence) |
古い.
部分名を使用して、アプリケーション ディレクトリまたはグローバル アセンブリ キャッシュからアセンブリを読み込みます。 アセンブリは、指定された証拠を使用して読み込まれます。 |
注釈
Important
Assembly.LoadWithPartialName メソッドのオーバーロードは古く、旧バージョンとの互換性のために保持されています。 廃止されていない代替手段は Assembly.Load(String)です。
LoadWithPartialName(String)
注意事項
This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202
注意事項
This method has been deprecated. Please use Assembly.Load() instead. https://go.microsoft.com/fwlink/?linkid=14202
部分名を使用して、アプリケーション ディレクトリまたはグローバル アセンブリ キャッシュからアセンブリを読み込みます。
public:
static System::Reflection::Assembly ^ LoadWithPartialName(System::String ^ partialName);
public static System.Reflection.Assembly LoadWithPartialName(string partialName);
[System.Obsolete("This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Reflection.Assembly LoadWithPartialName(string partialName);
[System.Obsolete("This method has been deprecated. Please use Assembly.Load() instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Reflection.Assembly LoadWithPartialName(string partialName);
static member LoadWithPartialName : string -> System.Reflection.Assembly
[<System.Obsolete("This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
static member LoadWithPartialName : string -> System.Reflection.Assembly
[<System.Obsolete("This method has been deprecated. Please use Assembly.Load() instead. https://go.microsoft.com/fwlink/?linkid=14202")>]
static member LoadWithPartialName : string -> System.Reflection.Assembly
Public Shared Function LoadWithPartialName (partialName As String) As Assembly
パラメーター
- partialName
- String
アセンブリの表示名。
返品
読み込まれたアセンブリ。
partialNameが見つからない場合、このメソッドはnullを返します。
- 属性
例外
partialName パラメーターはnull。
アセンブリは、現在読み込まれているランタイムの有効なアセンブリではありません。
注釈
Important
LoadWithPartialName(String)メソッドは古く、旧バージョンとの互換性のために保持されています。 廃止されていない代替手段は Assembly.Load(String)です。
このメソッドを使用してアセンブリを読み込むアプリケーションは、それらのアセンブリのアップグレードの影響を受けます。 したがって、このメソッドを使用しないでください。 Load(String) メソッドオーバーロードまたは LoadFrom(String) メソッドオーバーロードを使用するようにアプリケーションを再設計します。
.NET Core/5 以降では、ターゲット アセンブリは現在の AssemblyLoadContext に読み込まれ、設定されている場合は AssemblyLoadContext.CurrentContextualReflectionContext に読み込まれます。
このメソッドは、最初に Loadを呼び出します。 アセンブリが見つからない場合、このメソッドは、同じ単純な名前と最も高いバージョン番号を持つグローバル アセンブリ キャッシュからアセンブリを返します。
こちらもご覧ください
適用対象
LoadWithPartialName(String, Evidence)
注意事項
This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202
部分名を使用して、アプリケーション ディレクトリまたはグローバル アセンブリ キャッシュからアセンブリを読み込みます。 アセンブリは、指定された証拠を使用して読み込まれます。
public:
static System::Reflection::Assembly ^ LoadWithPartialName(System::String ^ partialName, System::Security::Policy::Evidence ^ securityEvidence);
public static System.Reflection.Assembly LoadWithPartialName(string partialName, System.Security.Policy.Evidence securityEvidence);
[System.Obsolete("This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Reflection.Assembly LoadWithPartialName(string partialName, System.Security.Policy.Evidence securityEvidence);
static member LoadWithPartialName : string * System.Security.Policy.Evidence -> System.Reflection.Assembly
[<System.Obsolete("This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
static member LoadWithPartialName : string * System.Security.Policy.Evidence -> System.Reflection.Assembly
Public Shared Function LoadWithPartialName (partialName As String, securityEvidence As Evidence) As Assembly
パラメーター
- partialName
- String
アセンブリの表示名。
- securityEvidence
- Evidence
アセンブリを読み込むための証拠。
返品
読み込まれたアセンブリ。
partialNameが見つからない場合、このメソッドはnullを返します。
- 属性
例外
アセンブリまたはモジュールが 2 つの異なる証拠セットで 2 回読み込まれました。
partialName パラメーターはnull。
アセンブリは、現在読み込まれているランタイムの有効なアセンブリではありません。
注釈
Important
LoadWithPartialName(String, Evidence)メソッドは古く、旧バージョンとの互換性のために保持されています。 廃止されていない代替手段は Assembly.Load(String)です。
証拠は、コードに付与できるアクセス許可など、セキュリティ ポリシーの決定への入力を構成する情報のセットです。
このメソッドを使用してアセンブリを読み込むアプリケーションは、それらのアセンブリのアップグレードの影響を受けます。 したがって、このメソッドを使用しないでください。 Load メソッドまたは LoadFrom メソッドを使用するようにアプリケーションを再設計します。
このメソッドは、最初に Loadを呼び出します。 アセンブリが見つからない場合、このメソッドは、同じ単純な名前と最も高いバージョン番号を持つグローバル アセンブリ キャッシュからアセンブリを返します。