ElementPropertyDescriptor 可以操作特定的元素传入构造函数,或者也可以接受一个空元素。 如果提供指定元素,则 GetValue ()、SetValue () 和其他方法将忽略其中传递的对象参数并将改用特定元素。 如果提供一个空元素,则 GetValue ()、SetValue () 和其他方法将使用其中传递的对象参数。
命名空间: Microsoft.VisualStudio.Modeling.DslDefinition.Design
程序集: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll 中)
语法
声明
Public Sub New ( _
modelElement As ModelElement, _
domainProperty As DomainPropertyInfo, _
trackingProperty As DomainPropertyInfo, _
attributes As Attribute() _
)
public DslDefinitionModelElementTrackingPropertyDescriptor(
ModelElement modelElement,
DomainPropertyInfo domainProperty,
DomainPropertyInfo trackingProperty,
Attribute[] attributes
)
参数
- modelElement
类型:Microsoft.VisualStudio.Modeling.ModelElement
ModelElement 的属性将被操作。这可能是 null,在案例 GetValue () 和 SetValue () 实际上使用传递参数。
- domainProperty
类型:Microsoft.VisualStudio.Modeling.DomainPropertyInfo
属性(必需)
- trackingProperty
类型:Microsoft.VisualStudio.Modeling.DomainPropertyInfo
(布尔)处理此属性是否正在跟踪的属性。
- attributes
类型:array<System.Attribute[]
此数次那个说明符的属性的数组
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。