ElementTypeDescriptor 建構函式 (ICustomTypeDescriptor, ModelElement)
使用父自訂型別描述元,初始化 ElementTypeDescriptor 類別的新執行個體。
命名空間: Microsoft.VisualStudio.Modeling.Design
組件: Microsoft.VisualStudio.Modeling.Sdk.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
語法
'宣告
Protected Friend Sub New ( _
parent As ICustomTypeDescriptor, _
element As ModelElement _
)
protected internal ElementTypeDescriptor(
ICustomTypeDescriptor parent,
ModelElement element
)
參數
- parent
類型:System.ComponentModel.ICustomTypeDescriptor
父自訂型別描述項。
- element
類型:Microsoft.VisualStudio.Modeling.ModelElement
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | selectedElement 為 nullnull 參考 (即 Visual Basic 中的 Nothing)。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。