Sdílet prostřednictvím


LookupActivity.Execute Method

Searches for a specified item with a specified field value in a specified list.

Namespace:  Microsoft.SharePoint.WorkflowActions
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

Syntax

'Declaration
Protected Overrides Function Execute ( _
    provider As ActivityExecutionContext _
) As ActivityExecutionStatus
'Usage
Dim provider As ActivityExecutionContext
Dim returnValue As ActivityExecutionStatus

returnValue = Me.Execute(provider)
protected override ActivityExecutionStatus Execute(
    ActivityExecutionContext provider
)

Parameters

Return Value

Type: System.Workflow.ComponentModel.ActivityExecutionStatus
The status of the activity.

Remarks

The workflow runtime calls this method to search for an item with a specified field in a list.

This override gets the value of the field specified by the FieldName property for the item specified by the ListItem property in the list, which is specified by the ListId property by using the function specified by the LookupFunction property. If the override finds the field value, it stores the result in the ReturnValue property. It always returns Closed.

See Also

Reference

LookupActivity Class

LookupActivity Members

Microsoft.SharePoint.WorkflowActions Namespace