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,则将 CodeBase 设置为原位置。true 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