MemberDescriptor Class
TOC
Collapse the table of content
Expand the table of content

MemberDescriptor Class

 

Represents a class member, such as a property or event. This is an abstract base class.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)


[ComVisibleAttribute(true)]
[HostProtectionAttribute(SecurityAction.LinkDemand, SharedState = true)]
public abstract class MemberDescriptor

NameDescription
System_CAPS_protmethodMemberDescriptor(MemberDescriptor)

Initializes a new instance of the MemberDescriptor class with the specified MemberDescriptor.

System_CAPS_protmethodMemberDescriptor(MemberDescriptor, Attribute[])

Initializes a new instance of the MemberDescriptor class with the name in the specified MemberDescriptor and the attributes in both the old MemberDescriptor and the Attribute array.

System_CAPS_protmethodMemberDescriptor(String)

Initializes a new instance of the MemberDescriptor class with the specified name of the member.

System_CAPS_protmethodMemberDescriptor(String, Attribute[])

Initializes a new instance of the MemberDescriptor class with the specified name of the member and an array of attributes.

NameDescription
System_CAPS_protpropertyAttributeArray

Gets or sets an array of attributes.

System_CAPS_pubpropertyAttributes

Gets the collection of attributes for this member.

System_CAPS_pubpropertyCategory

Gets the name of the category to which the member belongs, as specified in the CategoryAttribute.

System_CAPS_pubpropertyDescription

Gets the description of the member, as specified in the DescriptionAttribute.

System_CAPS_pubpropertyDesignTimeOnly

Gets whether this member should be set only at design time, as specified in the DesignOnlyAttribute.

System_CAPS_pubpropertyDisplayName

Gets the name that can be displayed in a window, such as a Properties window.

System_CAPS_pubpropertyIsBrowsable

Gets a value indicating whether the member is browsable, as specified in the BrowsableAttribute.

System_CAPS_pubpropertyName

Gets the name of the member.

System_CAPS_protpropertyNameHashCode

Gets the hash code for the name of the member, as specified in GetHashCode.

NameDescription
System_CAPS_protmethodCreateAttributeCollection()

Creates a collection of attributes using the array of attributes passed to the constructor.

System_CAPS_pubmethodEquals(Object)

Compares this instance to the given object to see if they are equivalent.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFillAttributes(IList)

When overridden in a derived class, adds the attributes of the inheriting class to the specified list of attributes in the parent class.

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_protmethodSystem_CAPS_staticFindMethod(Type, String, Type[], Type)

Finds the given method through reflection, searching only for public methods.

System_CAPS_protmethodSystem_CAPS_staticFindMethod(Type, String, Type[], Type, Boolean)

Finds the given method through reflection, with an option to search only public methods.

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this instance.(Overrides Object.GetHashCode().)

System_CAPS_protmethodGetInvocationTarget(Type, Object)

Retrieves the object that should be used during invocation of members.

System_CAPS_protmethodSystem_CAPS_staticGetInvokee(Type, Object)

Obsolete.Gets the component on which to invoke a method.

System_CAPS_protmethodSystem_CAPS_staticGetSite(Object)

Gets a component site for the given component.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

MemberDescriptor is the base class for the EventDescriptor and the PropertyDescriptor classes. The EventDescriptor class provides a description of an event, and the PropertyDescriptor class provides a description of a property.

This class defines properties and methods to access its stored attributes. The Attributes property gets the collection of attributes. The Category, IsBrowsable, Description, and DesignTimeOnly properties retrieve the values of those specific attributes. The Name and DisplayName properties provide the name of the member.

The MemberDescriptor also defines an Equals method to compare this MemberDescriptor to another.

System_CAPS_noteNote

Typically, you inherit from the EventDescriptor and PropertyDescriptor classes, and not from this class.

Since most of the usage of this class will fall on the inherited classes EventDescriptor and PropertyDescriptor, refer to the examples in these classes.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft