ElementTypeDescriptionProvider::GetTypeDescriptor Method (Type^, Object^)

 

Gets a custom type descriptor for the given type and object.

Namespace:   Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

public:
virtual ICustomTypeDescriptor^ GetTypeDescriptor(
	Type^ objectType,
	Object^ instance
) override sealed

Parameters

objectType
Type: System::Type^

The type of the object for which to retrieve the type descriptor.

instance
Type: System::Object^

The object for which to retrieve the type descriptor.

Return Value

Type: System.ComponentModel::ICustomTypeDescriptor^

A custom type descriptor for the given type and object.

If instance is null, then this method gets a custom type descriptor for the objectType.

Return to top
Show: