_MemberInfo.DeclaringType Property

Definition

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

public:
 property Type ^ DeclaringType { Type ^ get(); };
public Type DeclaringType { get; }
member this.DeclaringType : Type
Public ReadOnly Property DeclaringType As Type

Property Value

Type

声明该成员的类的 Type 对象。The Type object for the class that declares this member.

Remarks

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

MemberInfo.DeclaringType属性获取声明该成员的类。The MemberInfo.DeclaringType property gets the class that declares this member.

Applies to