SqlConnectionStringBuilder.MaxPoolSize Property


获取或设置针对此特定连接字符串连接池中所允许的最大连接数。Gets or sets the maximum number of connections allowed in the connection pool for this specific connection string.

 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

Property Value


MaxPoolSize 属性的值;如果未提供任何值,则为 100。The value of the MaxPoolSize property, or 100 if none has been supplied.


此属性与连接字符串内的“Max Pool Size”键相对应。This property corresponds to the "Max Pool Size" key within the connection string.

Applies to

See also