WorkflowApplicationEventArgs.InstanceId Egenskap

Definition

Den unika identifieraren för arbetsflödesinstansen.

public:
 property Guid InstanceId { Guid get(); };
public Guid InstanceId { get; }
member this.InstanceId : Guid
Public ReadOnly Property InstanceId As Guid

Egenskapsvärde

En unik identifierare.

Exempel

I följande kodexempel inspekteras den WorkflowApplicationEventArgs som skickats till Unloaded hanteraren för en WorkflowApplication instans och visar arbetsflödet InstanceId som togs bort.

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

Gäller för