PathAssemblyResolver 類別

定義

代表中繼資料元件解析程式,其使用可能載入之每個元件的路徑。Represents a metadata assembly resolver that uses paths to every assembly that may be loaded.

public ref class PathAssemblyResolver : System::Reflection::MetadataAssemblyResolver
public class PathAssemblyResolver : System.Reflection.MetadataAssemblyResolver
type PathAssemblyResolver = class
    inherit MetadataAssemblyResolver
Public Class PathAssemblyResolver
Inherits MetadataAssemblyResolver
繼承
PathAssemblyResolver

備註

檔案名應該與元件的簡單名稱相同。The file name is expected to be the same as the assembly's simple name. 具有相同名稱但在不同目錄中的多個元件可以存在於磁片上。Multiple assemblies can exist on disk with the same name but in different directories. 的單一實例PathAssemblyResolver可以搭配多個MetadataAssemblyResolver實例使用。A single instance of PathAssemblyResolver can be used with multiple MetadataAssemblyResolver instances.

為了讓AssemblyName符合載入的元件, AssemblyName.Name必須相等 (忽略大小寫)。In order for an AssemblyName to match a loaded assembly, AssemblyName.Name must be equal (casing ignored).

建構函式

PathAssemblyResolver(IEnumerable<String>)

初始化 PathAssemblyResolver 類別的新執行個體。Initializes a new instance of the PathAssemblyResolver class.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
Resolve(MetadataLoadContext, AssemblyName)

從指定的元件名稱傳回元件。Returns an assembly from a given assembly name.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於