_Type.Attributes _Type.Attributes _Type.Attributes _Type.Attributes Property

定义

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

public:
 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

属性值

表示 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 Type.AttributesThe Type.Attributes property gets the attributes associated with the Type.

适用于