_Type.Attributes Property


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

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

Property Value


表示 TypeAttributes 的属性集的 Type 对象,除非 Type 表示泛型类型形参,在此情况下该值未指定。A TypeAttributes object representing the attribute set of the Type, unless the Type represents a generic type parameter, in which case the value is unspecified.


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

Type.Attributes 属性获取与 Type相关联的属性。The Type.Attributes property gets the attributes associated with the Type.

Applies to