Assembly.GetName 方法

定義

取得這個組件的 AssemblyNameGets an AssemblyName for this assembly.

多載

GetName()

取得這個組件的 AssemblyNameGets an AssemblyName for this assembly.

GetName(Boolean)

取得這個組件的 AssemblyName,設定按照 copiedName 指定的基礎碼。Gets an AssemblyName for this assembly, setting the codebase as specified by copiedName.

GetName()

取得這個組件的 AssemblyNameGets an AssemblyName for this assembly.

public:
 virtual System::Reflection::AssemblyName ^ GetName();
public virtual System.Reflection.AssemblyName GetName ();
abstract member GetName : unit -> System.Reflection.AssemblyName
override this.GetName : unit -> System.Reflection.AssemblyName
Public Overridable Function GetName () As AssemblyName

傳回

AssemblyName

物件,包含這個組件的完整剖析顯示名稱。An object that contains the fully parsed display name for this assembly.

實作

適用於

產品 Introduced

GetName(Boolean)

取得這個組件的 AssemblyName,設定按照 copiedName 指定的基礎碼。Gets an AssemblyName for this assembly, setting the codebase as specified by copiedName.

public:
 virtual System::Reflection::AssemblyName ^ GetName(bool copiedName);
public virtual System.Reflection.AssemblyName GetName (bool copiedName);
abstract member GetName : bool -> System.Reflection.AssemblyName
override this.GetName : bool -> System.Reflection.AssemblyName
Public Overridable Function GetName (copiedName As Boolean) As AssemblyName

參數

copiedName
Boolean

若要將 true 設定為組件陰影複製以後的位置,則為 CodeBase;若要將 false 設定為原始位置,則為 CodeBasetrue to set the CodeBase to the location of the assembly after it was shadow copied; false to set CodeBase to the original location.

傳回

AssemblyName

物件,包含這個組件的完整剖析顯示名稱。An object that contains the fully parsed display name for this assembly.

實作

適用於

產品 Introduced