WorkflowAncestorReferenceExpression.Validate Method
Verifies whether the WorkflowAncestorReferenceExpression is configured correctly.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Function Validate ( _
validation As RuleValidation, _
isWritten As Boolean _
) As RuleExpressionInfo
'Usage
Dim instance As WorkflowAncestorReferenceExpression
Dim validation As RuleValidation
Dim isWritten As Boolean
Dim returnValue As RuleExpressionInfo
returnValue = instance.Validate(validation, _
isWritten)
public RuleExpressionInfo Validate(
RuleValidation validation,
bool isWritten
)
Parameters
validation
Type: System.Workflow.Activities.Rules.RuleValidationAn object to which any validation errors are added.
isWritten
Type: System.Booleantrue if the expression is being written to; otherwise, false.
Return Value
Type: System.Workflow.Activities.Rules.RuleExpressionInfo
An object that stores the information about the validation, especially the data type.
Implements
IRuleExpression.Validate(RuleValidation, Boolean)
Remarks
This method returns null if the WorkflowAncestorReferenceExpression is configured incorrectly.
Validation errors are added to the Errors property of the validation parameter.
See Also
Reference
WorkflowAncestorReferenceExpression Class