Export (0) Print
Expand All

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.

System.Object
   System.ComponentModel.MemberDescriptor
      System.ComponentModel.EventDescriptor
      System.ComponentModel.PropertyDescriptor

[Visual Basic]
<ComVisible(True)>
MustInherit Public Class MemberDescriptor
[C#]
[ComVisible(true)]
public abstract class MemberDescriptor
[C++]
[ComVisible(true)]
public __gc __abstract class MemberDescriptor
[JScript]
public
   ComVisible(true)
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.

Remarks

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.

Example

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.

Requirements

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

Show:
© 2015 Microsoft