SqlTrackingQuery Class
Collapse the table of content
Expand the table of content

SqlTrackingQuery Class

Note: This API is now obsolete.

Contains methods and properties that are used to manage queries to the tracking data that is contained in the SQL database used by a SqlTrackingService.

Namespace:   System.Workflow.Runtime.Tracking
Assembly:  System.Workflow.Runtime (in System.Workflow.Runtime.dll)


[ObsoleteAttribute("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class SqlTrackingQuery


Initializes a new instance of the SqlTrackingQuery class.


Initializes a new instance of the SqlTrackingQuery class.


The connection string of the SQL tracking database to query.


Determines whether the specified object is equal to the current object.(Inherited from Object.)


Serves as the default hash function. (Inherited from Object.)


Gets the Type of the current instance.(Inherited from Object.)


Returns tracking data for a set of workflow instances that correspond to a set of query parameters specified by a SqlTrackingQueryOptions.


Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTryGetWorkflow(Guid, SqlTrackingWorkflowInstance)

Tries to get query data for a specified workflow instance.


This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

SqlTrackingQuery provides methods and properties that you can use in order to access certain kinds of tracking data stored in a SQL database by the SqlTrackingService. Access to this data is provided through SqlTrackingWorkflowInstance objects. You can call TryGetWorkflow to try to get a SqlTrackingWorkflowInstance for a specific workflow instance. You can call GetWorkflows to get a collection of SqlTrackingWorkflowInstance objects that correspond workflow instances that have tracking data that matches a set of query parameters contained in a SqlTrackingQueryOptions that is passed as a parameter to the method. See the SqlTrackingWorkflowInstance class for more information about the kind of tracking data available and see the SqlTrackingQueryOptions class for more information about the kind of queries that can be performed.

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
© 2015 Microsoft