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

该类型的实例。

返回

为类型提供元数据的说明符。

适用于