Tries to get query data for a specified workflow instance.
Assembly: System.Workflow.Runtime (in System.Workflow.Runtime.dll)
public bool TryGetWorkflow( Guid workflowInstanceId, out SqlTrackingWorkflowInstance workflowInstance )
- Type: System.Guid
The Guid of the workflow instance for which the tracking data is requested.
- Type: System.Workflow.Runtime.Tracking.SqlTrackingWorkflowInstance%
When this method returns true, contains a SqlTrackingWorkflowInstance that provides access to the tracking data associated with the workflow instance. This parameter is passed uninitiailized.
Return ValueType: System.Boolean
true if tracking data is available for the requested workflow instance; otherwise, false.
The following code example demonstrates how to use the method to retrieve a SqlTrackingWorkflowInstance.
This code example is part of the Workflow Monitor SDK Sample from the DatabaseService.cs file. For more information, see Workflow Monitor.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.