Прочетете на английски Редактиране

Споделяне чрез


WorkflowApplicationEventArgs.InstanceId Property

Definition

The unique identifier of the workflow instance.

C#
public Guid InstanceId { get; }

Property Value

A unique identifier.

Examples

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.

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

Applies to

Продукт Версии
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1