DslDefinitionModelElementTypeDescriptor.ShouldCreatePropertyDescriptor 方法
取得是否要建立指定之屬性的型別描述元。
命名空間: Microsoft.VisualStudio.Modeling.DslDefinition.Design
組件: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll 中)
語法
'宣告
Protected Overrides Function ShouldCreatePropertyDescriptor ( _
requestor As ModelElement, _
domainProperty As DomainPropertyInfo _
) As Boolean
protected override bool ShouldCreatePropertyDescriptor(
ModelElement requestor,
DomainPropertyInfo domainProperty
)
參數
- requestor
類型:Microsoft.VisualStudio.Modeling.ModelElement
項目。
- domainProperty
類型:Microsoft.VisualStudio.Modeling.DomainPropertyInfo
屬性。
傳回值
類型:System.Boolean
True 表示要建立描述元,否則為 false。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。