SqlWorkflowPersistenceService コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
SqlWorkflowPersistenceService クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| SqlWorkflowPersistenceService(NameValueCollection) |
指定したパラメーターを使用して、 SqlWorkflowPersistenceService クラスの新しいインスタンスを初期化します。 |
| SqlWorkflowPersistenceService(String) |
データベース 接続文字列を使用して、SqlWorkflowPersistenceService クラスの新しいインスタンスを初期化します。 |
| SqlWorkflowPersistenceService(String, Boolean, TimeSpan, TimeSpan) |
データベース 接続文字列やその他のパラメーターを使用して、SqlWorkflowPersistenceService クラスの新しいインスタンスを初期化します。 |
SqlWorkflowPersistenceService(NameValueCollection)
指定したパラメーターを使用して、 SqlWorkflowPersistenceService クラスの新しいインスタンスを初期化します。
public:
SqlWorkflowPersistenceService(System::Collections::Specialized::NameValueCollection ^ parameters);
public SqlWorkflowPersistenceService(System.Collections.Specialized.NameValueCollection parameters);
new System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService : System.Collections.Specialized.NameValueCollection -> System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService
Public Sub New (parameters As NameValueCollection)
パラメーター
- parameters
- NameValueCollection
スタートアップ パラメーターを含む NameValueCollection 。
例外
parameters に無効なデータベース 接続文字列が含まれています。
parameters は null 参照です (Visual Basic では Nothing)。
注釈
このコンストラクターは、ワークフロー ランタイム エンジンがアプリケーション構成ファイルからサービスを読み込むときに呼び出されます。
NameValueCollection パラメーターを使用してプログラムで呼び出すこともできます。 有効なパラメーターは、 ConnectionString、 OwnershipTimeoutSeconds、 UnloadOnIdle、および EnableRetriesです。 パラメーターに他のキーが含まれている場合は、 ArgumentException がスローされます。
適用対象
SqlWorkflowPersistenceService(String)
データベース 接続文字列を使用して、SqlWorkflowPersistenceService クラスの新しいインスタンスを初期化します。
public:
SqlWorkflowPersistenceService(System::String ^ connectionString);
public SqlWorkflowPersistenceService(string connectionString);
new System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService : string -> System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService
Public Sub New (connectionString As String)
パラメーター
- connectionString
- String
有効なデータベース 接続文字列。
例外
connectionString は null 参照です (Visual Basic では Nothing)。
適用対象
SqlWorkflowPersistenceService(String, Boolean, TimeSpan, TimeSpan)
データベース 接続文字列やその他のパラメーターを使用して、SqlWorkflowPersistenceService クラスの新しいインスタンスを初期化します。
public:
SqlWorkflowPersistenceService(System::String ^ connectionString, bool unloadOnIdle, TimeSpan instanceOwnershipDuration, TimeSpan loadingInterval);
public SqlWorkflowPersistenceService(string connectionString, bool unloadOnIdle, TimeSpan instanceOwnershipDuration, TimeSpan loadingInterval);
new System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService : string * bool * TimeSpan * TimeSpan -> System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService
Public Sub New (connectionString As String, unloadOnIdle As Boolean, instanceOwnershipDuration As TimeSpan, loadingInterval As TimeSpan)
パラメーター
- connectionString
- String
有効なデータベース 接続文字列。
- unloadOnIdle
- Boolean
true アイドル状態のときにワークフローをアンロードします。
- instanceOwnershipDuration
- TimeSpan
アイドル状態のワークフローでロックが維持される時間の長さ。
- loadingInterval
- TimeSpan
永続化サービスが、期限切れのタイマーを持つワークフローについてデータベースをポーリングする頻度。
例外
connectionString は null 参照です (Visual Basic では Nothing)。
注釈
このコンストラクター ( instanceOwnershipDurationの値を提供) を使用すると、ロックが有効になります。 ロックを有効にしない永続化サービスを作成するには、 instanceOwnershipDurationを指定しない別のコンストラクターを使用します。