Partager via


VsTargetFrameworkProvider.GetTypeDescriptor Method (Type, Object)

Gets the type descriptor for the specified object and type.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

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

Parameters

  • objectType
    Type: Type

    The type.

  • instance
    Type: Object

    The object.

Return Value

Type: ICustomTypeDescriptor
The type descriptor.

.NET Framework Security

See Also

Reference

VsTargetFrameworkProvider Class

GetTypeDescriptor Overload

Microsoft.VisualStudio.Shell.Design Namespace