MemberType Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

When overridden in a derived class, gets a MemberTypes value indicating the type of the member — method, constructor, event, and so on.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual property MemberTypes MemberType {
	MemberTypes get () abstract;
}

Property Value

Type: System.Reflection..::..MemberTypes
A MemberTypes value indicating the type of member.

This property is overridden in derived classes, and the override returns the appropriate member type. Therefore, when you examine a set of MemberInfo objects — for example, the array returned by GetMembers — the MemberType property can be used to determine the member type of any given member.

To get the MemberType property, get the class Type. From the Type, get the MethodInfo array. From the MethodInfo array, get the MemberTypes.

Show: