Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

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
/** @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.

NoteNote:

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.

System.Object
   System.Attribute
    System.ComponentModel.TypeDescriptionProviderAttribute
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 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.

.NET Framework

Supported in: 3.0, 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.