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:
virtual ICustomTypeDescriptor^ GetTypeDescriptor(
	Type^ objectType,
	Object^ instance
) override

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: