Partilhar 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