TypeDescriptionProviderAttribute Class
Assembly: System (in system.dll)
'Declaration <AttributeUsageAttribute(AttributeTargets.Class, Inherited:=True)> _ Public NotInheritable Class TypeDescriptionProviderAttribute Inherits Attribute 'Usage Dim instance As TypeDescriptionProviderAttribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class, Inherited=true) */ public final class TypeDescriptionProviderAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Class, Inherited=true) public final class TypeDescriptionProviderAttribute extends Attribute
Not applicable.
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.
Note: |
|---|
| 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.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Note: