ForwardingTypeDescriptionProvider.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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaração
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: System.Type
The type of the object for which to retrieve the type descriptor.
- instance
Type: System.Object
The model element 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 the TypeDescriptionProviderForwarder delegate with which this type was created returns a target model element, then this method returns a descriptor for that target element; otherwise, this method returns a descriptor for the instance element.
If instance is nulla null reference (Nothing in Visual Basic), then this method gets a custom type descriptor for the objectType.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.