Share via


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

  • isWritten
    Type: System.Boolean

    true 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

WorkflowAncestorReferenceExpression members

Microsoft.SharePoint.WorkflowActions namespace