AssociatedMetadataTypeTypeDescriptionProvider.GetTypeDescriptor 方法

定义

获取指定类型和对象的类型描述符。

public:
 override System::ComponentModel::ICustomTypeDescriptor ^ GetTypeDescriptor(Type ^ objectType, System::Object ^ instance);
public override System.ComponentModel.ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object? instance);
public override System.ComponentModel.ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance);
override this.GetTypeDescriptor : Type * obj -> System.ComponentModel.ICustomTypeDescriptor
Public Overrides Function GetTypeDescriptor (objectType As Type, instance As Object) As ICustomTypeDescriptor

参数

objectType
Type

要为其检索类型描述符的对象的类型。

instance
Object

类型的实例。

返回

为类型提供元数据的描述符。

适用于