SqlConnectionStringBuilder.MaxPoolSize 属性

定义

获取或设置针对此特定连接字符串连接池中所允许的最大连接数。

public:
 property int MaxPoolSize { int get(); void set(int value); };
public int MaxPoolSize { get; set; }
member this.MaxPoolSize : int with get, set
Public Property MaxPoolSize As Integer

属性值

MaxPoolSize 属性的值;如果未提供任何值,则为 100。

注解

此属性与连接字符串内的“Max Pool Size”键相对应。

适用于

另请参阅