Package.MaxConcurrentExecutables プロパティ

定義

パッケージが作成できるスレッドの数を取得します。値の設定も可能です。

public:
 property int MaxConcurrentExecutables { int get(); void set(int value); };
[Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyCategory(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "PropertyCategoryExecution")]
[Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescription(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "MaxConcurrentExecutablesDesc")]
public int MaxConcurrentExecutables { get; set; }
[<Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyCategory(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "PropertyCategoryExecution")>]
[<Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescription(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "MaxConcurrentExecutablesDesc")>]
member this.MaxConcurrentExecutables : int with get, set
Public Property MaxConcurrentExecutables As Integer

プロパティ値

Int32

パッケージが作成できるスレッドの数です。

属性

次のコード例では、MaxConcurrentExecutables を 1 に設定し、この値を ForEachLoop で設定しています。これにより、ForEachLoop で一度に実行されるタスクが 1 つになります。

Package p;  
p.MaxConcurrentExecutables = 1;  
ForEachLoop loop;  
loop.MaxConcurrent = p.MaxConcurrentExecutables;  
Dim p As Package  
p.MaxConcurrentExecutables = 1  
Dim loop As ForEachLoop  
loop.MaxConcurrent = p.MaxConcurrentExecutables  

注釈

有効な値は 1 以上か -1 です。 その他の値は無効です。 値が -1 の場合は、同時に実行できる実行可能ファイルの最大数が、プロセッサの総数に 2 を加えた数と等しいことを意味します。 このプロパティを 0 または他の負数に設定すると、無効な引数を示すエラー コードで失敗します。

このプロパティは、ワークフローに並列処理が組み込まれている場合に使用されます。 ワークフローが一連の連続した優先順位制約である場合、このプロパティには効力がありません。

適用対象