共用方式為


SPWorkflow.InstanceId Property

Gets the ID of this workflow instance.

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

Syntax

Public ReadOnly Property InstanceId As Guid
    Get

Dim instance As SPWorkflow
Dim value As Guid

value = instance.InstanceId
public Guid InstanceId { get; }

Property Value

Type: System.Guid
A Guid that represents the workflow instance ID.

See Also

Reference

SPWorkflow Class

SPWorkflow Members

Microsoft.SharePoint.Workflow Namespace

Other Resources

Workflows in Windows SharePoint Services

Workflow Development for Windows SharePoint Services

Workflow Object Model in Windows SharePoint Services Overview