SqlConnectionInfo.MaxPoolSize 屬性

取得或設定此連接在執行緒集區中所將接受的執行緒數目上限。

命名空間:  Microsoft.SqlServer.Management.Common
組件:  Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)

語法

'宣告
Public Property MaxPoolSize As Integer 
    Get 
    Set
'用途
Dim instance As SqlConnectionInfo 
Dim value As Integer 

value = instance.MaxPoolSize

instance.MaxPoolSize = value
public int MaxPoolSize { get; set; }
public:
property int MaxPoolSize {
    int get ();
    void set (int value);
}
member MaxPoolSize : int with get, set
function get MaxPoolSize () : int 
function set MaxPoolSize (value : int)

屬性值

型別:Int32
Int32 值,指定此連接在執行緒集區中所將接受的執行緒數目上限。

備註

這個屬性的預設值為 100。 這大部份的目的是完整的。 修改執行緒數目上限可以增進大量資源的系統效能。

請參閱

參考

SqlConnectionInfo 類別

Microsoft.SqlServer.Management.Common 命名空間