Validator::Validate Method (ValidationManager^, Object^)
.NET Framework (current version)
Validates the specified object and returns a collection of validation errors.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
public: virtual ValidationErrorCollection^ Validate( ValidationManager^ manager, Object^ obj )
Parameters
- manager
-
Type:
System.Workflow.ComponentModel.Compiler::ValidationManager^
The validation manager linked to the validation.
- obj
-
Type:
System::Object^
The Object to be validated.
Return Value
Type: System.Workflow.ComponentModel.Compiler::ValidationErrorCollection^A ValidationErrorCollection that contains the validation errors resulting from this operation.
| Exception | Condition |
|---|---|
| ArgumentNullException | manager is a null reference (Nothing in Visual Basic). |
| ArgumentNullException | obj is a null reference (Nothing). |
.NET Framework
Available since 3.0
Available since 3.0
Show: