初始化 ElementPropertyDescriptor 类的新实例。
命名空间: Microsoft.VisualStudio.Modeling.Design
程序集: Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
语法
声明
Public Sub New ( _
modelElement As ModelElement, _
domainProperty As DomainPropertyInfo, _
attributes As Attribute() _
)
public ElementPropertyDescriptor(
ModelElement modelElement,
DomainPropertyInfo domainProperty,
Attribute[] attributes
)
参数
- modelElement
类型:Microsoft.VisualStudio.Modeling.ModelElement
有此域属性的模型元素;或不与此域属性关联一个模型元素时为 null。
- domainProperty
类型:Microsoft.VisualStudio.Modeling.DomainPropertyInfo
描述的域属性的元数据。
- attributes
类型:array<System.Attribute[]
与域属性关联的特性。
异常
异常 | 条件 |
---|---|
ArgumentNullException | domainProperty 为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。