WorkflowApplication.Id Property

.NET Framework (current version)

Gets the 128-bit GUID identifier of the current workflow application instance.

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

public override Guid Id { get; }

Property Value

Type: System.Guid

A 128-bit GUID identifier.

The following example creates a WorkflowApplication instance and then displays the Id value to the console.

Activity wf = new WriteLine
    Text = "Hello world."

WorkflowApplication wfApp = new WorkflowApplication(wf);

Console.WriteLine("Id: {0}", wfApp.Id);

.NET Framework
Available since 4.0
Return to top