Condividi tramite


SPListItem.EnsureWorkflowInformation Method (Boolean, Boolean)

Checks the item's workflow information and, if necessary, updates it to ensure that the most current information is used.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Sub EnsureWorkflowInformation ( _
    retrieveAssociations As Boolean, _
    retrieveWorkflows As Boolean _
)
'Usage
Dim instance As SPListItem
Dim retrieveAssociations As Boolean
Dim retrieveWorkflows As Boolean

instance.EnsureWorkflowInformation(retrieveAssociations, _
    retrieveWorkflows)
public void EnsureWorkflowInformation(
    bool retrieveAssociations,
    bool retrieveWorkflows
)

Parameters

  • retrieveAssociations
    Type: System.Boolean

    true to include workflow associations; otherwise, false.

  • retrieveWorkflows
    Type: System.Boolean

    true to include workflows; otherwise, false.

Remarks

This method gets the workflow information from the list item, and updates the workflow if necessary to ensure that the most current information is used.

See Also

Reference

SPListItem Class

SPListItem Members

EnsureWorkflowInformation Overload

Microsoft.SharePoint Namespace