共用方式為


OnWorkflowActivated.WorkflowId Property

Returns the GUID that the workflow engine assigns to this workflow instance upon initiation.

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

Syntax

'Declaration
<ValidationOptionAttribute(ValidationOption.Optional)> _
<BrowsableAttribute(False)> _
Public Property WorkflowId As Guid
    Get
    Set
'Usage
Dim instance As OnWorkflowActivated
Dim value As Guid

value = instance.WorkflowId

instance.WorkflowId = value
[ValidationOptionAttribute(ValidationOption.Optional)]
[BrowsableAttribute(false)]
public Guid WorkflowId { get; set; }

Property Value

Type: System.Guid

Remarks

The WorkflowId properties of each activity in the workflow should be bound to this property.

See Also

Reference

OnWorkflowActivated Class

OnWorkflowActivated Members

Microsoft.SharePoint.WorkflowActions Namespace

Other Resources

Workflow Activities for SharePoint Foundation

Workflow Initiation in SharePoint Foundation