System.ComponentModel.TypeDescriptionProviderAttribute Class

Specifies the custom type description provider for a class. This class cannot be inherited.

See Also: TypeDescriptionProviderAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Class, Inherited=true)]
public sealed class TypeDescriptionProviderAttribute : Attribute

Remarks

This attribute supplies a way for developers to provide custom metadata for their authored classes. This capability extends the static type information functionality in the System.ComponentModel.TypeDescriptor class, which by default only obtains type information directly from metadata of the compiled classes.

Note:

For a more dynamic way to provide custom metadata for your authored classes, see the erload:System.ComponentModel.TypeDescriptor.AddProvider method.

Tagging a class with a System.ComponentModel.TypeDescriptionProviderAttribute will associate a System.ComponentModel.TypeDescriptionProvider with that class. A System.ComponentModel.TypeDescriptionProvider provides supplemental metadata information about the tagged class. For example, the erload:System.ComponentModel.TypeDescriptionProvider.GetTypeDescriptor method returns an System.ComponentModel.ICustomTypeDescriptor that defines additional type information, such as attributes, events, and properties. Subsequently, if a System.ComponentModel.TypeDescriptionProvider member is used to investigate the tagged class, it will discover both the default and custom type information.

This attribute can only be applied to classes and is inherited by derived classes.

This attribute cannot be derived from.

For more information about using attributes, see Extending Metadata Using Attributes.

Requirements

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