AssociatedMetadataTypeTypeDescriptionProvider.GetTypeDescriptor Method (Type, Object)

 

Gets a type descriptor for the specified type and object.

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

public override ICustomTypeDescriptor GetTypeDescriptor(
	Type objectType,
	object instance
)

Parameters

objectType
Type: System.Type

The type of object to retrieve the type descriptor for.

instance
Type: System.Object

An instance of the type.

Return Value

Type: System.ComponentModel.ICustomTypeDescriptor

The descriptor that provides metadata for the type.

.NET Framework
Available since 3.5
Return to top
Show: