ElementTypeDescriptor.ShouldCreatePropertyDescriptor 方法
傳回值,指出是否應該建立指定的網域屬性的描述項。
命名空間: Microsoft.VisualStudio.Modeling.Design
組件: Microsoft.VisualStudio.Modeling.Sdk.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)
語法
'宣告
Protected Overridable Function ShouldCreatePropertyDescriptor ( _
requestor As ModelElement, _
domainProperty As DomainPropertyInfo _
) As Boolean
protected virtual bool ShouldCreatePropertyDescriptor(
ModelElement requestor,
DomainPropertyInfo domainProperty
)
參數
- requestor
型別:Microsoft.VisualStudio.Modeling.ModelElement
將 [網域] 屬性模型項目。
- domainProperty
型別:Microsoft.VisualStudio.Modeling.DomainPropertyInfo
網域屬性以傳回的值。
傳回值
型別:System.Boolean
值為Browsable屬性的BrowsableAttribute屬性的 [網域] 屬性中。 或 true,如果屬性沒有BrowsableAttribute。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | domainProperty 為 nullnull 參考 (即 Visual Basic 中的 Nothing)。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。