Share via


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)

Syntax

'Declaration
Public Overrides NotOverridable Function GetTypeDescriptor ( _
    objectType As Type, _
    instance As Object _
) As ICustomTypeDescriptor
public override sealed ICustomTypeDescriptor GetTypeDescriptor(
    Type objectType,
    Object instance
)
public:
virtual ICustomTypeDescriptor^ GetTypeDescriptor(
    Type^ objectType, 
    Object^ instance
) override sealed
abstract GetTypeDescriptor : 
        objectType:Type * 
        instance:Object -> ICustomTypeDescriptor  
override GetTypeDescriptor : 
        objectType:Type * 
        instance:Object -> ICustomTypeDescriptor
public override final function GetTypeDescriptor(
    objectType : Type, 
    instance : Object
) : ICustomTypeDescriptor

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.

Remarks

If instance is nulla null reference (Nothing in Visual Basic), then this method gets a custom type descriptor for the objectType.

.NET Framework Security

See Also

Reference

ElementTypeDescriptionProvider Class

GetTypeDescriptor Overload

Microsoft.VisualStudio.Modeling.Design Namespace