MemberType Property

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

Gets a MemberTypes value indicating that this member is a method.

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

'Declaration
Public Overrides ReadOnly Property MemberType As MemberTypes

Property Value

Type: System.Reflection..::..MemberTypes
A MemberTypes value indicating that this member is a method.

This property overrides MemberInfo..::..MemberType. Therefore, when you examine a set of MemberInfo objects — for example, the array returned by GetMembers — the MemberType property returns MemberTypes..::..Method only when a given member is a method.

To get the MemberType property, first get the class Type. From the Type, get the MethodInfo. From the MethodInfo, get the MemberType.

Show: