TypeDescriptor::GetProvider Method (Type^)

 

Returns the type description provider for the specified type.

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

public:
static TypeDescriptionProvider^ GetProvider(
	Type^ type
)

Parameters

type
Type: System::Type^

The Type of the target component.

Return Value

Type: System.ComponentModel::TypeDescriptionProvider^

A TypeDescriptionProvider associated with the specified type.

Exception Condition
ArgumentNullException

type is null.

The GetProvider method will always return a type description provider. Even the default TypeDescriptor implementation is built on a TypeDescriptionProvider.

.NET Framework
Available since 2.0
Return to top
Show: