SqlConnectionStringBuilder.MaxPoolSize Property

Definition

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

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

Property Value

Int32

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

Remarks

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

Applies to

See also