SqlConnectionStringBuilder.MinPoolSize Property

Definition

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

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

Property Value

Int32

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

Remarks

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

Applies to

See also