返回指示说明符是否应能创建为指定域属性的值。
命名空间: Microsoft.VisualStudio.Modeling.Design
程序集: Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.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
BrowsableAttribute 属性的 Browsable 属性的域;如果属性没有 BrowsableAttribute,或者为 true。
异常
异常 | 条件 |
---|---|
ArgumentNullException | domainProperty 为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。