Validator.ValidateProperty Method (PropertyInfo, Object, Object, ValidationManager)

 

Performs validation on a property and returns a ValidationErrorCollection that contains the results of that validation.

Namespace:   System.Workflow.ComponentModel.Compiler
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

protected internal ValidationErrorCollection ValidateProperty(
	PropertyInfo propertyInfo,
	object propertyOwner,
	object propertyValue,
	ValidationManager manager
)

Parameters

propertyInfo
Type: System.Reflection.PropertyInfo

The PropertyInfo on the subject property.

propertyOwner
Type: System.Object

The owner of the property.

propertyValue
Type: System.Object

The value of the property.

manager
Type: System.Workflow.ComponentModel.Compiler.ValidationManager

A ValidationManager for this operation.

Return Value

Type: System.Workflow.ComponentModel.Compiler.ValidationErrorCollection

A ValidationErrorCollection that contains the results of that validation.

If no errors result from the validation, an empty ValidationErrorCollection is returned.

.NET Framework
Available since 3.0
Return to top
Show: