WorkflowInstance.InstanceId Property   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the unique identifier for the workflow instance.
public:
 property Guid InstanceId { Guid get(); };public Guid InstanceId { get; }member this.InstanceId : GuidPublic ReadOnly Property InstanceId As GuidProperty Value
The Guid of the workflow instance.
Remarks
You can use InstanceId to reference the workflow instance.