SqlTrackingService Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the SqlTrackingService class.
Overloads
SqlTrackingService(NameValueCollection) |
Initializes a new instance of the SqlTrackingService class by using the specified NameValueCollection. |
SqlTrackingService(String) |
Initializes a new instance of the SqlTrackingService class by using the specified database connection string. |
SqlTrackingService(NameValueCollection)
Initializes a new instance of the SqlTrackingService class by using the specified NameValueCollection.
public:
SqlTrackingService(System::Collections::Specialized::NameValueCollection ^ parameters);
public SqlTrackingService (System.Collections.Specialized.NameValueCollection parameters);
new System.Workflow.Runtime.Tracking.SqlTrackingService : System.Collections.Specialized.NameValueCollection -> System.Workflow.Runtime.Tracking.SqlTrackingService
Public Sub New (parameters As NameValueCollection)
Parameters
- parameters
- NameValueCollection
A NameValueCollection that specifies properties of SqlTrackingService and their initial values.
Exceptions
parameters
is a null reference (Nothing
in Visual Basic).
The string
value associated with a Boolean
property key in parameters
is not represented by either TrueString or FalseString.
Remarks
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. |
Applies to
SqlTrackingService(String)
Initializes a new instance of the SqlTrackingService class by using the specified database connection string.
public:
SqlTrackingService(System::String ^ connectionString);
public SqlTrackingService (string connectionString);
new System.Workflow.Runtime.Tracking.SqlTrackingService : string -> System.Workflow.Runtime.Tracking.SqlTrackingService
Public Sub New (connectionString As String)
Parameters
- connectionString
- String
A valid database connection string.
Exceptions
The database connection string is not valid.