Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WorkflowApplicationEventArgs::InstanceId Property

.NET Framework (current version)
 

The unique identifier of the workflow instance.

Namespace:   System.Activities
Assembly:  System.Activities (in System.Activities.dll)

public:
property Guid InstanceId {
	Guid get();
}

Property Value

Type: System::Guid

A unique identifier.

The following code example inspects the WorkflowApplicationEventArgs passed into the Unloaded handler of a WorkflowApplication instance and displays the InstanceId of the workflow that was unloaded.

wfApp.Unloaded = delegate(WorkflowApplicationEventArgs e)
{
    Console.WriteLine("Workflow {0} unloaded.", e.InstanceId);
};

.NET Framework
Available since 4.0
Return to top
Show:
© 2017 Microsoft