共用方式為


SPWorkflow.GetActivityDetails Method

Returns an array of objects with detailed information about each workflow activity.

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)> _
Public Function GetActivityDetails As SPWorkflowActivityDetails()
'Usage
Dim instance As SPWorkflow
Dim returnValue As SPWorkflowActivityDetails()

returnValue = instance.GetActivityDetails()
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
public SPWorkflowActivityDetails[] GetActivityDetails()

Return Value

Type: []
An array of objects, each with information about an activity of the workflow, or null if no information is available.

Remarks

A workflow is a set of activities that are organized hierarchically in a tree structure. An activity represents an action in a workflow. Each object in the array returned by this method has information about one activity in the workflow activity tree.

Note

This method returns null if "ShowPreview" is not set to true in the workflow configuration file. This setting turns on workflow visualization on the workflow status page.

See Also

Reference

SPWorkflow Class

SPWorkflow Members

Microsoft.SharePoint.Workflow Namespace

Activity

Other Resources

Workflow Configuration Schema Overview