Partager via


WorkflowEnvironment.WorkflowInstanceId Propriété

Définition

Obtient l’instance Guid de workflow associée au thread actuel.

public:
 static property Guid WorkflowInstanceId { Guid get(); };
public static Guid WorkflowInstanceId { get; }
static member WorkflowInstanceId : Guid
Public Shared ReadOnly Property WorkflowInstanceId As Guid

Valeur de propriété

Qui Guid identifie l’instance de workflow actuelle.

Remarques

WorkflowInstanceId contient l’instance Guid de workflow en cours d’exécution dans ce thread. Chaque fois que le code est exécuté à partir d’un thread de flux de travail, vous pouvez obtenir l’instance Guid de workflow via la WorkflowInstanceId propriété. Par exemple, si votre code se trouve dans un service appelé par une activité, WorkflowInstanceId fournit Guid l’instance de workflow pour l’activité appelante.

S’applique à