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)
Syntax
'Declaration
Public MustOverride ReadOnly Property MemberType As MemberTypes
public abstract MemberTypes MemberType { get; }
public:
virtual property MemberTypes MemberType {
MemberTypes get () abstract;
}
abstract MemberType : MemberTypes with get
abstract function get MemberType () : MemberTypes
Property Value
Type: System.Reflection. . :: . .MemberTypes
A MemberTypes value indicating the type of member.
Remarks
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.