Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TypeDescriptor.GetProvider Method (Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns the type description provider for the specified component.

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

public static TypeDescriptionProvider GetProvider(
	object instance
)

Parameters

instance
Type: System.Object

An instance of the target component.

Return Value

Type: System.ComponentModel.TypeDescriptionProvider

A TypeDescriptionProvider associated with the specified component.

Exception Condition
ArgumentNullException

instance 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:
© 2018 Microsoft