次の方法で共有


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)

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