PropertyValidationContext 构造函数

定义

初始化 PropertyValidationContext 类的新实例。

重载

PropertyValidationContext(Object, DependencyProperty)

初始化 PropertyValidationContext 类的新实例。

public:
 PropertyValidationContext(System::Object ^ propertyOwner, System::Workflow::ComponentModel::DependencyProperty ^ dependencyProperty);
public PropertyValidationContext(object propertyOwner, System.Workflow.ComponentModel.DependencyProperty dependencyProperty);
new System.Workflow.ComponentModel.Compiler.PropertyValidationContext : obj * System.Workflow.ComponentModel.DependencyProperty -> System.Workflow.ComponentModel.Compiler.PropertyValidationContext
Public Sub New (propertyOwner As Object, dependencyProperty As DependencyProperty)

参数

propertyOwner
Object

拥有该属性的对象。

dependencyProperty
DependencyProperty

关联的 DependencyProperty

例外

propertyOwner 为 null 引用 (Visual Basic Nothing)。

适用于

PropertyValidationContext(Object, PropertyInfo, String)

初始化 PropertyValidationContext 类的新实例。

public:
 PropertyValidationContext(System::Object ^ propertyOwner, System::Reflection::PropertyInfo ^ propertyInfo, System::String ^ propertyName);
public PropertyValidationContext(object propertyOwner, System.Reflection.PropertyInfo propertyInfo, string propertyName);
new System.Workflow.ComponentModel.Compiler.PropertyValidationContext : obj * System.Reflection.PropertyInfo * string -> System.Workflow.ComponentModel.Compiler.PropertyValidationContext
Public Sub New (propertyOwner As Object, propertyInfo As PropertyInfo, propertyName As String)

参数

propertyOwner
Object

拥有该属性的对象。

propertyInfo
PropertyInfo

关联的 DependencyProperty

propertyName
String

属性的名称。

例外

propertyName 为 null 引用 (Visual Basic Nothing)。

适用于