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
Protected method MemberInfo Initializes a new instance of the MemberInfo class.

Top

Properties

  Name Description
Public property DeclaringType Gets the class that declares this member.
Public property MemberType When overridden in a derived class, gets a MemberTypes value indicating the type of the member — method, constructor, event, and so on.
Public property Name Gets the name of the current member.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method 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.

See Also

Reference

System.Reflection Namespace