Modifica

Condividi tramite


Validator.ValidateProperty Method

Definition

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

protected public:
 System::Workflow::ComponentModel::Compiler::ValidationErrorCollection ^ ValidateProperty(System::Reflection::PropertyInfo ^ propertyInfo, System::Object ^ propertyOwner, System::Object ^ propertyValue, System::Workflow::ComponentModel::Compiler::ValidationManager ^ manager);
protected internal System.Workflow.ComponentModel.Compiler.ValidationErrorCollection ValidateProperty (System.Reflection.PropertyInfo propertyInfo, object propertyOwner, object propertyValue, System.Workflow.ComponentModel.Compiler.ValidationManager manager);
member this.ValidateProperty : System.Reflection.PropertyInfo * obj * obj * System.Workflow.ComponentModel.Compiler.ValidationManager -> System.Workflow.ComponentModel.Compiler.ValidationErrorCollection
Protected Friend Function ValidateProperty (propertyInfo As PropertyInfo, propertyOwner As Object, propertyValue As Object, manager As ValidationManager) As ValidationErrorCollection

Parameters

propertyInfo
PropertyInfo

The PropertyInfo on the subject property.

propertyOwner
Object

The owner of the property.

propertyValue
Object

The value of the property.

manager
ValidationManager

A ValidationManager for this operation.

Returns

A ValidationErrorCollection that contains the results of that validation.

Remarks

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

Applies to