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