NoImpersonationSequenceCompositeActivityValidator.Validate Method
Verifies that an Activity is not a descendant Activity of the ImpersonationSequenceActivity.
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 NoImpersonationSequenceCompositeActivityValidator
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.ValidationManagerAn object that is associated with validation.
obj
Type: System.ObjectThe activity to be validated.
Return Value
Type: System.Workflow.ComponentModel.Compiler.ValidationErrorCollection
The errors that occur during validation.
Remarks
If the obj is a descendant activity of a ImpersonationSequenceActivity activity, this override adds an error to the returned validation errors.
See Also
Reference
NoImpersonationSequenceCompositeActivityValidator Class