_MemberInfo.DeclaringType Property


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

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

Property Value


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


此属性用于从非托管代码访问托管类,不应从托管代码调用。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