AssociatedMetadataTypeTypeDescriptionProvider.GetTypeDescriptor Method (Type, Object)
.NET Framework (current version)
Gets a type descriptor for the specified type and object.
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.ICustomTypeDescriptorThe descriptor that provides metadata for the type.
.NET Framework
Available since 3.5
Available since 3.5
Show: