共用方式為


ElementTypeDescriptionProvider.GetTypeDescriptor 方法 (Type, Object)

取得特定型別和物件的自訂型別描述項。

命名空間:  Microsoft.VisualStudio.Modeling.Design
組件:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

語法

'宣告
Public Overrides NotOverridable Function GetTypeDescriptor ( _
    objectType As Type, _
    instance As Object _
) As ICustomTypeDescriptor
public override sealed ICustomTypeDescriptor GetTypeDescriptor(
    Type objectType,
    Object instance
)

參數

  • objectType
    類型:System.Type
    要為其擷取型別描述項之物件的型別。
  • instance
    類型:System.Object
    要為其擷取型別描述元的物件。

傳回值

類型:System.ComponentModel.ICustomTypeDescriptor
特定型別和物件的自訂型別描述項。

備註

如果 instance 是 nullnull 參考 (即 Visual Basic 中的 Nothing),則這個方法會取得 objectType的自訂型別描述元。

.NET Framework 安全性

請參閱

參考

ElementTypeDescriptionProvider 類別

GetTypeDescriptor 多載

Microsoft.VisualStudio.Modeling.Design 命名空間