Assembly.GetName Assembly.GetName Assembly.GetName Assembly.GetName Method

定义

获取此程序集的 AssemblyNameGets an AssemblyName for this assembly.

重载

GetName() GetName() GetName() GetName()

获取此程序集的 AssemblyNameGets an AssemblyName for this assembly.

GetName(Boolean) GetName(Boolean) GetName(Boolean) GetName(Boolean)

获取此程序集的 AssemblyName,并按 copiedName 指定的那样设置基本代码。Gets an AssemblyName for this assembly, setting the codebase as specified by copiedName.

GetName() GetName() GetName() 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

返回

包含此程序集的完全分析的显示名称的对象。An object that contains the fully parsed display name for this assembly.

实现

安全性

FileIOPermission
用于访问程序集的路径。for access to the path of the assembly. 关联的枚举:PathDiscoveryAssociated enumeration: PathDiscovery

GetName(Boolean) GetName(Boolean) GetName(Boolean) 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 Boolean Boolean 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.

返回

包含此程序集的完全分析的显示名称的对象。An object that contains the fully parsed display name for this assembly.

实现

安全性

FileIOPermission
用于访问程序集的路径。for access to the path of the assembly. 关联的枚举:PathDiscoveryAssociated enumeration: PathDiscovery

适用于