_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

Property Value


Assembly 執行個體,描述包含目前類型的組件。An Assembly instance that describes the assembly containing the current type.


這個屬性是用來從非受控程式碼存取 managed 類別,而且不應該從 managed 程式碼呼叫。This property is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.Assembly 屬性會取得宣告類型的 AssemblyThe Type.Assembly property gets the Assembly in which the type is declared. 若為泛型型別,這個屬性會取得定義泛型型別的 AssemblyFor generic types, this property gets the Assembly in which the generic type is defined.

Applies to