Share via


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 を指定しない異なるコンストラクターを使用します。

適用対象