This documentation is archived and is not being maintained.

MemberDescriptor Class

An abstract base class that represents a class member, such as a property, or event.

For a list of all members of this type, see MemberDescriptor Members.


[Visual Basic]
MustInherit Public Class MemberDescriptor
public abstract class MemberDescriptor
public __gc __abstract class MemberDescriptor
abstract class MemberDescriptor

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.


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. Attributes gets the collection of attributes. Category, IsBrowsable, Description, and DesignTimeOnly retrieve the values of those specific attributes. Name and DisplayName provide the name of the member.

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

Note   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 samples in these classes, respectively.


Namespace: System.ComponentModel

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: System (in System.dll)

See Also

MemberDescriptor Members | System.ComponentModel Namespace | PropertyDescriptor | EventDescriptor