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


為 COM 物件提供與版本無關的 Assembly 屬性之存取權。Provides COM objects with version-independent access to the Assembly property.

 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.


這個屬性從 unmanaged 程式碼,是用於存取 managed 類別,並不會呼叫從 managed 程式碼。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.