ConnectionSettings.MinPoolSize 属性

获取或设置与服务器建立连接时指定的连接接受的连接池中的最小连接数。

命名空间:  Microsoft.SqlServer.Management.Common
程序集:  Microsoft.SqlServer.ConnectionInfo(在 Microsoft.SqlServer.ConnectionInfo.dll 中)

语法

声明
Public Property MinPoolSize As Integer 
    Get 
    Set
用法
Dim instance As ConnectionSettings 
Dim value As Integer 

value = instance.MinPoolSize

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

属性值

类型:Int32
一个 Int32 值,该值指定连接池中的最小连接数。

注释

注意 中的最小连接数。水池的连接不能小于两个。

请参阅

参考

ConnectionSettings 类

Microsoft.SqlServer.Management.Common 命名空间