SqlConnectionStringBuilder.Pooling Property


获取或设置一个布尔值,该值指示每次请求连接时该连接是汇入连接池还是显式打开。Gets or sets a Boolean value that indicates whether the connection will be pooled or explicitly opened every time that the connection is requested.

 property bool Pooling { bool get(); void set(bool value); };
public bool Pooling { get; set; }
member this.Pooling : bool with get, set
Public Property Pooling As Boolean

Property Value


Pooling 属性的值,或者,如果未提供任何值,则为 trueThe value of the Pooling property, or true if none has been supplied.


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

Applies to

See also