TypeDescriptor.GetProvider Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the type description provider for the component or type.
Overloads
GetProvider(Type) |
Returns the type description provider for the specified type. |
GetProvider(Object) |
Returns the type description provider for the specified component. |
GetProvider(Type)
- Source:
- TypeDescriptor.cs
- Source:
- TypeDescriptor.cs
- Source:
- TypeDescriptor.cs
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
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
- TypeDescriptionProvider
- ICustomTypeDescriptor
- RemoveProvider
- GetReflectionType
- GetEditor
- GetConverter
Applies to
GetProvider(Object)
- Source:
- TypeDescriptor.cs
- Source:
- TypeDescriptor.cs
- Source:
- TypeDescriptor.cs
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
- TypeDescriptionProvider
- ICustomTypeDescriptor
- RemoveProvider
- GetReflectionType
- GetEditor
- GetConverter