Share via


ExtractSubstringFromIndexLengthActivityValidator.Validate method

Verifies that the specified activity is valid.

Namespace:  Microsoft.SharePoint.WorkflowActions
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 ExtractSubstringFromIndexLengthActivityValidator
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

  • obj
    Type: System.Object

    The workflow activity that must be validated.

Return value

Type: System.Workflow.ComponentModel.Compiler.ValidationErrorCollection
Returns ValidationErrorCollection object that contains a collection of ValidationError objects. Any errors or warnings encountered during the validation of the workflow activity will be stored in the collection..

Remarks

Validate(ValidationManager, Object) method enforces the rules included in the code that govern the workflow activity that is being validated.

See also

Reference

ExtractSubstringFromIndexLengthActivityValidator class

ExtractSubstringFromIndexLengthActivityValidator members

Microsoft.SharePoint.WorkflowActions namespace