TypeDescriptionProviderAttribute Constructors

Definition

Initializes a new instance of the TypeDescriptionProviderAttribute class.

Overloads

TypeDescriptionProviderAttribute(String)

Initializes a new instance of the TypeDescriptionProviderAttribute class using the specified type name.

TypeDescriptionProviderAttribute(Type)

Initializes a new instance of the TypeDescriptionProviderAttribute class using the specified type.

TypeDescriptionProviderAttribute(String)

Source:
TypeDescriptionProviderAttribute.cs
Source:
TypeDescriptionProviderAttribute.cs
Source:
TypeDescriptionProviderAttribute.cs

Initializes a new instance of the TypeDescriptionProviderAttribute class using the specified type name.

C#
public TypeDescriptionProviderAttribute(string typeName);

Parameters

typeName
String

The qualified name of the type.

Exceptions

typeName is null.

Remarks

The TypeDescriptionProviderAttribute constructor associates the specified TypeDescriptionProvider with the tagged class.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

TypeDescriptionProviderAttribute(Type)

Source:
TypeDescriptionProviderAttribute.cs
Source:
TypeDescriptionProviderAttribute.cs
Source:
TypeDescriptionProviderAttribute.cs

Initializes a new instance of the TypeDescriptionProviderAttribute class using the specified type.

C#
public TypeDescriptionProviderAttribute(Type type);

Parameters

type
Type

The type to store in the attribute.

Exceptions

type is null.

Remarks

The TypeDescriptionProviderAttribute constructor associates the specified TypeDescriptionProvider with the tagged class.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1