ElementTypeDescriptor.ShouldCreatePropertyDescriptor 方法

返回指示说明符是否应能创建为指定域属性的值。

命名空间:  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
)

参数

返回值

类型:System.Boolean
BrowsableAttribute 属性的 Browsable 属性的域;如果属性没有 BrowsableAttribute,或者为 true。

异常

异常 条件
ArgumentNullException

domainProperty 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参阅

参考

ElementTypeDescriptor 类

Microsoft.VisualStudio.Modeling.Design 命名空间