Assembly.LoadWithPartialName メソッド

定義

アプリケーション ディレクトリまたはグローバル アセンブリ キャッシュから、部分名を使用してアセンブリを読み込みます。

オーバーロード

LoadWithPartialName(String)
古い.
古い.
古い.

アプリケーション ディレクトリまたはグローバル アセンブリ キャッシュから、部分名を使用してアセンブリを読み込みます。

LoadWithPartialName(String, Evidence)
古い.

アプリケーション ディレクトリまたはグローバル アセンブリ キャッシュから、部分名を使用してアセンブリを読み込みます。 アセンブリは、指定された証拠を使用して読み込まれます。

注釈

重要

メソッドの Assembly.LoadWithPartialName オーバーロードは古く、下位互換性のために保持されています。 旧式でない代替手段は、Assembly.Load(String) です。

LoadWithPartialName(String)

ソース:
Assembly.CoreCLR.cs
ソース:
Assembly.CoreCLR.cs
ソース:
Assembly.CoreCLR.cs

注意事項

This method has been deprecated. Please use Assembly.Load() instead. https://go.microsoft.com/fwlink/?linkid=14202

注意事項

Assembly.LoadWithPartialName has been deprecated. Use Assembly.Load() instead.

注意事項

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.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);
[System.Obsolete("Assembly.LoadWithPartialName has been deprecated. Use Assembly.Load() instead.")]
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);
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);
[<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
[<System.Obsolete("Assembly.LoadWithPartialName has been deprecated. Use Assembly.Load() instead.")>]
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
static member LoadWithPartialName : string -> System.Reflection.Assembly
Public Shared Function LoadWithPartialName (partialName As String) As Assembly

パラメーター

partialName
String

アセンブリの表示名。

戻り値

読み込まれるアセンブリ。 partialName が見つからない場合、このメソッドは null を返します。

属性

例外

partialName パラメーターが null です。

assemblyFile は、現在読み込まれているランタイムの有効なアセンブリではありません。

注釈

重要

メソッドは LoadWithPartialName(String) 古く、下位互換性のために保持されています。 旧式でない代替手段は、Assembly.Load(String) です。

この方法でアセンブリを読み込むアプリケーションは、それらのアセンブリのアップグレードの影響を受けます。 したがって、このメソッドは使用しないでください。メソッドオーバーロードまたはメソッドオーバーロードを Load(String) 使用するようにアプリケーションを LoadFrom(String) 再設計します。

このメソッドは、最初に を呼び出します 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 です。

assemblyFile は、現在読み込まれているランタイムの有効なアセンブリではありません。

注釈

重要

メソッドは LoadWithPartialName(String, Evidence) 古く、下位互換性のために保持されています。 旧式でない代替手段は、Assembly.Load(String) です。

証拠とは、セキュリティ ポリシーがアクセス許可を決定するときに使用する一連の情報 (コードにどのようなアクセス許可を付与できるかなど) のことです。

この方法でアセンブリを読み込むアプリケーションは、それらのアセンブリのアップグレードの影響を受けます。 したがって、このメソッドは使用しないでください。メソッドまたは メソッドを使用するようにアプリケーションをLoadLoadFrom再設計します。

このメソッドは、最初に を呼び出します Load。 アセンブリが見つからない場合、このメソッドは、同じ単純な名前と最も大きいバージョン番号を持つグローバル アセンブリ キャッシュからアセンブリを返します。

こちらもご覧ください

適用対象