Share via


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)

Syntax

'Declaration
Public Overrides ReadOnly Property MemberType As MemberTypes
public override MemberTypes MemberType { get; }
public:
virtual property MemberTypes MemberType {
    MemberTypes get () override;
}
abstract MemberType : MemberTypes with get
override MemberType : MemberTypes with get
override function get MemberType () : MemberTypes

Property Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

MethodInfo Class

System.Reflection Namespace