MemberInfo Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Obtains information about the attributes of a member and provides access to member metadata.
Inheritance Hierarchy
System. . :: . .Object
System.Reflection..::..MemberInfo
System.Reflection. . :: . .FieldInfo
System.Reflection. . :: . .MethodBase
System.Reflection. . :: . .PropertyInfo
System. . :: . .Type
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public MustInherit Class MemberInfo
[SerializableAttribute]
public abstract class MemberInfo
[SerializableAttribute]
public ref class MemberInfo abstract
[<AbstractClass>]
[<SerializableAttribute>]
type MemberInfo = class end
public abstract class MemberInfo
The MemberInfo type exposes the following members.
Constructors
Name | Description | |
---|---|---|
MemberInfo | Initializes a new instance of the MemberInfo class. |
Top
Properties
Name | Description | |
---|---|---|
DeclaringType | Gets the class that declares this member. | |
MemberType | When overridden in a derived class, gets a MemberTypes value indicating the type of the member — method, constructor, event, and so on. | |
Name | Gets the name of the current member. |
Top
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
The MemberInfo class is the abstract base class for classes used to obtain information about all members of a class (constructors, events, fields, methods, and properties).
This class introduces the basic functionality that all members provide.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.