TypeDescriptor.GetProvider Method

Definition

Returns the type description provider for the component or type.

Overloads

GetProvider(Object)

Returns the type description provider for the specified component.

GetProvider(Type)

Returns the type description provider for the specified type.

GetProvider(Object)

Returns the type description provider for the specified component.

public:
 static System::ComponentModel::TypeDescriptionProvider ^ GetProvider(System::Object ^ instance);
public static System.ComponentModel.TypeDescriptionProvider GetProvider (object instance);
static member GetProvider : obj -> System.ComponentModel.TypeDescriptionProvider
Public Shared Function GetProvider (instance As Object) As TypeDescriptionProvider

Parameters

instance
Object

An instance of the target component.

Returns

A TypeDescriptionProvider associated with the specified component.

Exceptions

instance is null.

Remarks

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

See also

Applies to

GetProvider(Type)

Returns the type description provider for the specified type.

public:
 static System::ComponentModel::TypeDescriptionProvider ^ GetProvider(Type ^ type);
public static System.ComponentModel.TypeDescriptionProvider GetProvider (Type type);
static member GetProvider : Type -> System.ComponentModel.TypeDescriptionProvider
Public Shared Function GetProvider (type As Type) As TypeDescriptionProvider

Parameters

type
Type

The Type of the target component.

Returns

A TypeDescriptionProvider associated with the specified type.

Exceptions

type is null.

Remarks

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

See also

Applies to