ElementTypeDescriptor.GetDisplayProperties 方法 (ModelElement, PropertyDescriptor%)

返回所有模型元素属性的属性描述符集合。

命名空间:  Microsoft.VisualStudio.Modeling.Design
程序集:  Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

语法

声明
Protected Function GetDisplayProperties ( _
    requestor As ModelElement, _
    ByRef defaultPropertyDescriptor As PropertyDescriptor _
) As PropertyDescriptorCollection
protected PropertyDescriptorCollection GetDisplayProperties(
    ModelElement requestor,
    ref PropertyDescriptor defaultPropertyDescriptor
)

参数

返回值

类型:System.ComponentModel.PropertyDescriptorCollection
所有模型元素属性的属性描述符集合。

异常

异常 条件
ArgumentNullException

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

备注

如果模型元素为删除标记,则此方法将返回一个空集合,不更新 defaultPropertyDescriptor。

方法添加此或排除基于以下规则的范围属性描述符的:

.NET Framework 安全性

请参阅

参考

ElementTypeDescriptor 类

GetDisplayProperties 重载

Microsoft.VisualStudio.Modeling.Design 命名空间

ShouldCreatePropertyDescriptor

IncludeOppositeRolePlayerProperties

IncludeEmbeddingRelationshipProperties

DefaultDomainProperty