ElementTypeDescriptionProvider.CreateCustomTypeDescriptor 方法 (ICustomTypeDescriptor, ModelElement)
Overridable,讓衍生類別提供 ICustomTypeDescriptor (不需要是 ElementTypeDescriptor)。 基底實作只是呼叫 CreateTypeDescriptor() 來建立 ElementTypeDescriptor。
命名空間: Microsoft.VisualStudio.Modeling.Design
組件: Microsoft.VisualStudio.Modeling.Sdk.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
語法
'宣告
Protected Overridable Function CreateCustomTypeDescriptor ( _
parent As ICustomTypeDescriptor, _
element As ModelElement _
) As ICustomTypeDescriptor
protected virtual ICustomTypeDescriptor CreateCustomTypeDescriptor(
ICustomTypeDescriptor parent,
ModelElement element
)
參數
- parent
類型:System.ComponentModel.ICustomTypeDescriptor
父自訂型別描述元。
- element
類型:Microsoft.VisualStudio.Modeling.ModelElement
要描述的項目。
傳回值
類型:System.ComponentModel.ICustomTypeDescriptor
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。