共用方式為


ConnectionSettings.NonPooledConnection 屬性

Gets or sets the Boolean property value that specifies whether the connection may be pooled or nonpooled.

命名空間:  Microsoft.SqlServer.Management.Common
組件:  Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)

語法

'宣告
Public Property NonPooledConnection As Boolean 
    Get 
    Set
'用途
Dim instance As ConnectionSettings 
Dim value As Boolean 

value = instance.NonPooledConnection

instance.NonPooledConnection = value
public bool NonPooledConnection { get; set; }
public:
property bool NonPooledConnection {
    bool get ();
    void set (bool value);
}
member NonPooledConnection : bool with get, set
function get NonPooledConnection () : boolean 
function set NonPooledConnection (value : boolean)

屬性值

型別:System.Boolean
A Boolean value that specifies whether the connection may be pooled or nonpooled. If True, the connection must be nonpooled and not be part of a connection pool.If False (default), the connection may be pooled and part of a connection pool.

請參閱

參考

ConnectionSettings 類別

Microsoft.SqlServer.Management.Common 命名空間