SqlTrackingService Constructor (NameValueCollection)

 

Initializes a new instance of the SqlTrackingService class by using the specified NameValueCollection.

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

public SqlTrackingService(
	NameValueCollection parameters
)

Parameters

parameters
Type: System.Collections.Specialized.NameValueCollection

A NameValueCollection that specifies properties of SqlTrackingService and their initial values.

Exception Condition
ArgumentNullException

parameters is a null reference (Nothing in Visual Basic).

FormatException

The string value associated with a Boolean property key in parameters is not represented by either TrueString or FalseString.

This constructor is called by the workflow runtime engine when the workflow runtime engine is initialized from an application configuration file that specifies a SqlTrackingService. You can also use this constructor to initialize the SqlTrackingService from a host application. The SqlTrackingService is initialized according to the key-value pairs that are contained in the NameValueCollection. The following table enumerates the potential keys, the property which each value initializes, and the type of each property. The value associated with each key should be a string that represents the appropriate type for the property referred to by that key. You can specify one or more of these key-value pairs.

Key

Property Type

Property Description

"IsTransactional"

bool

Specifies whether SqlTrackingService participates in workflow transactions by using the WorkBatch. The default is true, specifying that tracking changes are written to the database in a synchronous manner.

"UseDefaultProfile"

bool

Specifies whether the default tracking profile will be returned if a tracking profile cannot be found for a GetProfile call. The default is true, specifying that the default tracking profile will be used.

"ProfileChangeCheckInterval"

double

Specifies the time in milliseconds at which to examine the database for changes to its tracking profiles. The default is 60000 milliseconds.

"ConnectionString"

string

Specifies the database connection string. The default is a null reference (Nothing in Visual Basic).

"PartitionOnCompletion"

bool

Specifies whether tracking data for a workflow instance should be moved to the currently active partition in the database when the workflow instance is completed.

.NET Framework
Available since 3.0
Return to top
Show: