返回所有模型元素属性的属性描述符集合。
命名空间: 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
)
参数
- requestor
类型:Microsoft.VisualStudio.Modeling.ModelElement
要获取其属性的模型元素。
- defaultPropertyDescriptor
类型:System.ComponentModel.PropertyDescriptor%
元素的默认属性的说明,通过引用传递。
返回值
类型:System.ComponentModel.PropertyDescriptorCollection
所有模型元素属性的属性描述符集合。
异常
异常 | 条件 |
---|---|
ArgumentNullException | requestor 为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
备注
如果模型元素为删除标记,则此方法将返回一个空集合,不更新 defaultPropertyDescriptor。
方法添加此或排除基于以下规则的范围属性描述符的:
排除 ShouldCreatePropertyDescriptor 返回 false元素的字段属性。
如果 IncludeOppositeRolePlayerProperties 返回 true,则将零每个角色对和一一对一关系的属性。 每个这样角色属性是通过调用 CreateRolePlayerPropertyDescriptor 方法生成的。
如果 IncludeEmbeddingRelationshipProperties 返回 true,则将所有嵌入关系的目标元素的属性不授予副本。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。
请参阅
参考
Microsoft.VisualStudio.Modeling.Design 命名空间
ShouldCreatePropertyDescriptor
IncludeOppositeRolePlayerProperties