Validator.Validate Method (ValidationManager, Object)

 

Validates the specified object and returns a collection of validation errors.

Namespace:   System.Workflow.ComponentModel.Compiler
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
Return to top
Show: