This documentation is archived and is not being maintained.

TypeDescriptionProviderAttribute Class

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

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)

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

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 TypeDescriptor class, which by default only obtains type information directly from metadata of the compiled classes.


For a more dynamic way to provide custom metadata for your authored classes, see the AddProvider method.

Tagging a class with a TypeDescriptionProviderAttribute will associate a TypeDescriptionProvider with that class. A TypeDescriptionProvider provides supplemental metadata information about the tagged class. For example, the GetTypeDescriptor method returns an ICustomTypeDescriptor that defines additional type information, such as attributes, events, and properties. Subsequently, if a 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.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0