SqlWorkflowPersistenceService コンストラクター

定義

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 パラメーターを使用してプログラムで呼び出すこともできます。 有効なパラメーターは、 ConnectionStringOwnershipTimeoutSecondsUnloadOnIdle、および 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を指定しない別のコンストラクターを使用します。

適用対象