Represents a class member, such as a property or event. This is an abstract base class.
Assembly: System (in System.dll)
Thetype exposes the following members.
|MemberDescriptor(MemberDescriptor)||Initializes a new instance of the class with the specified .|
|MemberDescriptor(String)||Initializes a new instance of the class with the specified name of the member.|
|MemberDescriptor(MemberDescriptor, Attribute)||Initializes a new instance of the class with the name in the specified and the attributes in both the old and the Attribute array.|
|MemberDescriptor(String, Attribute)||Initializes a new instance of the class with the specified name of the member and an array of attributes.|
|AttributeArray||Gets or sets an array of attributes.|
|Attributes||Gets the collection of attributes for this member.|
|Category||Gets the name of the category to which the member belongs, as specified in the CategoryAttribute.|
|Description||Gets the description of the member, as specified in the DescriptionAttribute.|
|DesignTimeOnly||Gets whether this member should be set only at design time, as specified in the DesignOnlyAttribute.|
|DisplayName||Gets the name that can be displayed in a window, such as a Properties window.|
|IsBrowsable||Gets a value indicating whether the member is browsable, as specified in the BrowsableAttribute.|
|Name||Gets the name of the member.|
|NameHashCode||Gets the hash code for the name of the member, as specified in GetHashCode.|
|CreateAttributeCollection||Creates a collection of attributes using the array of attributes passed to the constructor.|
|Equals||Compares this instance to the given object to see if they are equivalent. (Overrides Object.Equals(Object).)|
In XNA Framework 3.0, this member is inherited from Object.Equals(Object).
|FillAttributes||When overridden in a derived class, adds the attributes of the inheriting class to the specified list of attributes in the parent class.|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|FindMethod(Type, String, Type, Type)||Finds the given method through reflection, searching only for public methods.|
|FindMethod(Type, String, Type, Type, Boolean)||Finds the given method through reflection, with an option to search only public methods.|
|GetHashCode||Returns the hash code for this instance. (Overrides Object.GetHashCode().)|
|GetInvocationTarget||Retrieves the object that should be used during invocation of members.|
|GetInvokee||Obsolete. Gets the component on which to invoke a method.|
|GetSite||Gets a component site for the given component.|
|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.)|
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 also defines an Equals method to compare this to another.
The HostProtectionAttribute attribute applied to this type or member has the following Resources property value: SharedState. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.