Edit

Share via


PropertyValidationContext Constructors

Definition

Initializes a new instance of the PropertyValidationContext class.

Overloads

PropertyValidationContext(Object, DependencyProperty)

Initializes a new instance of the PropertyValidationContext class.

C#
public PropertyValidationContext(object propertyOwner, System.Workflow.ComponentModel.DependencyProperty dependencyProperty);

Parameters

propertyOwner
Object

The object that owns the property.

dependencyProperty
DependencyProperty

The associated DependencyProperty.

Exceptions

propertyOwner is a null reference (Visual Basic Nothing).

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

PropertyValidationContext(Object, PropertyInfo, String)

Initializes a new instance of the PropertyValidationContext class.

C#
public PropertyValidationContext(object propertyOwner, System.Reflection.PropertyInfo propertyInfo, string propertyName);

Parameters

propertyOwner
Object

The object that owns the property.

propertyInfo
PropertyInfo

The associated DependencyProperty.

propertyName
String

The name of the property.

Exceptions

propertyName is a null reference (Visual Basic Nothing).

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1