WorkflowEnvironment.WorkflowInstanceId Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.