使用指定的默认值提供方初始化 TrackingPropertyDescriptor 类的新实例。
命名空间: 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, _
trackingProperty As DomainPropertyInfo, _
attributes As Attribute() _
)
public TrackingPropertyDescriptor(
ElementTypeDescriptor owner,
ModelElement modelElement,
DomainPropertyInfo domainProperty,
DomainPropertyInfo trackingProperty,
Attribute[] attributes
)
参数
- owner
类型:Microsoft.VisualStudio.Modeling.Design.ElementTypeDescriptor
具有域属性的模型元素的元素类型描述符。
- modelElement
类型:Microsoft.VisualStudio.Modeling.ModelElement
有此域属性的模型元素;或不与此域属性关联一个模型元素时为 null。
- domainProperty
类型:Microsoft.VisualStudio.Modeling.DomainPropertyInfo
描述的域属性的元数据。
- trackingProperty
类型:Microsoft.VisualStudio.Modeling.DomainPropertyInfo
域属性元数据表明所描述的属性是否正在追踪或已经被用户更新。
- attributes
类型:array<System.Attribute[]
与域属性关联的特性。
异常
异常 | 条件 |
---|---|
ArgumentNullException | owner、domainProperty 或 trackingProperty 参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
备注
owner 可以为上述范围属性提供默认值。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。