System.ComponentModel.MemberDescriptor Class

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

See Also: MemberDescriptor Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public abstract class MemberDescriptor

Remarks

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

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

The System.ComponentModel.MemberDescriptor also defines an MemberDescriptor.Equals(object) method to compare this System.ComponentModel.MemberDescriptor to another.

Note:

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

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0