CopyItemActivityValidator.Validate Method
Validates the CopyItemActivity class during workflow compilation.
Namespace: Microsoft.SharePoint.WorkflowActions.WithKey
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Overrides Function Validate ( _
manager As ValidationManager, _
obj As Object _
) As ValidationErrorCollection
'Usage
Dim instance As CopyItemActivityValidator
Dim manager As ValidationManager
Dim obj As Object
Dim returnValue As ValidationErrorCollection
returnValue = instance.Validate(manager, _
obj)
public override ValidationErrorCollection Validate(
ValidationManager manager,
Object obj
)
Parameters
manager
Type: System.Workflow.ComponentModel.Compiler.ValidationManagerThe validation manager that contains contextual information, such as property validation and parent and child activity relationships.
obj
Type: System.ObjectThe workflow activity that must be validated.
Return Value
Type: System.Workflow.ComponentModel.Compiler.ValidationErrorCollection
A collection of ValidationError objects. Any errors or warnings encountered during the validation of the workflow activity are stored in the collection.
Remarks
The Validate(ValidationManager, Object) method enforces the rules included in the code that govern the workflow activity that is being validated.
See Also
Reference
CopyItemActivityValidator Class
CopyItemActivityValidator Members