Validator::ValidateProperty Method (PropertyInfo^, Object^, Object^, ValidationManager^)
.NET Framework (current version)
Performs validation on a property and returns a ValidationErrorCollection that contains the results of that validation.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
public protected: 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
Available since 3.0
Show: