System.Reflection.MemberInfo Members

The members of System.Reflection.MemberInfo are listed below.

See Also: Inherited members from System.Object

Protected Constructors

Initializes a new instance of the System.Reflection.MemberInfo class.

Public Properties

[read-only]
CustomAttributesIEnumerable<CustomAttributeData>.

Gets a collection that contains this member's custom attributes.

[read-only]
abstract
DeclaringTypeType.

Gets the class that declares this member.

[read-only]
abstract
MemberTypeMemberTypes.

When overridden in a derived class, gets a System.Reflection.MemberTypes value indicating the type of the member — method, constructor, event, and so on.

[read-only]
MetadataTokenint.

Gets a value that identifies a metadata element.

[read-only]
ModuleModule.

Gets the module in which the type that declares the member represented by the current System.Reflection.MemberInfo is defined.

[read-only]
abstract
Namestring.

Gets the name of the current member.

[read-only]
abstract
ReflectedTypeType.

Gets the class object that was used to obtain this instance of MemberInfo.

Public Methods

override
Equals(object) : bool

Returns a value that indicates whether this instance is equal to a specified object.

abstract
GetCustomAttributes(bool) : object[]

When overridden in a derived class, returns an array of all custom attributes applied to this member.

abstract
GetCustomAttributes(Type, bool) : object[]

When overridden in a derived class, returns an array of custom attributes applied to this member and identified by Type.

GetCustomAttributesData() : IList<CustomAttributeData>

Returns a list of System.Reflection.CustomAttributeData objects representing data about the attributes that have been applied to the target member.

override
GetHashCode() : int

Returns the hash code for this instance.

GetType() : Type

Gets a Type object representing the type of the current instance.

abstract
IsDefined(Type, bool) : bool

When overridden in a derived class, indicates whether one or more attributes of the specified type or of its derived types is applied to this member.

Public Operators

static
Equality(MemberInfo, MemberInfo)

Indicates whether two System.Reflection.MemberInfo objects are equal.

static
Inequality(MemberInfo, MemberInfo)

Indicates whether two System.Reflection.MemberInfo objects are not equal.

Explicitly Implemented Interface Members

System.Runtime.InteropServices._MemberInfo.GetIDsOfNamesDocumentation for this section has not yet been entered.
System.Runtime.InteropServices._MemberInfo.GetType

Gets a Type object representing the System.Reflection.MemberInfo class.

System.Runtime.InteropServices._MemberInfo.GetTypeInfo

Retrieves the type information for an object, which can then be used to get the type information for an interface.

System.Runtime.InteropServices._MemberInfo.GetTypeInfoCountDocumentation for this section has not yet been entered.
System.Runtime.InteropServices._MemberInfo.InvokeDocumentation for this section has not yet been entered.