_Type.Assembly _Type.Assembly _Type.Assembly _Type.Assembly Property

定义

为 COM 对象提供对 Assembly 属性的与版本无关的访问。Provides COM objects with version-independent access to the Assembly property.

public:
 property System::Reflection::Assembly ^ Assembly { System::Reflection::Assembly ^ get(); };
public System.Reflection.Assembly Assembly { get; }
member this.Assembly : System.Reflection.Assembly
Public ReadOnly Property Assembly As Assembly

属性值

描述包含当前类型的程序集的 Assembly 实例。An Assembly instance that describes the assembly containing the current type.

注解

此属性是用于访问托管类到从非托管代码,不应从托管代码调用。This property is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.Assembly属性获取Assembly中声明的类型。The Type.Assembly property gets the Assembly in which the type is declared. 对于泛型类型,此属性获取Assembly中定义的泛型类型。For generic types, this property gets the Assembly in which the generic type is defined.

适用于