IConnectionStore<T>.GetConnection Method (Boolean)
Retrieves a new connection or duplicates the existing connection from the store.
Namespace: Microsoft.SqlServer.Management
Assembly: Microsoft.SqlServer.Management.SDK.SqlStudio (in Microsoft.SqlServer.Management.SDK.SqlStudio.dll)
Syntax
'Declaration
Function GetConnection ( _
newConnection As Boolean _
) As T
'Usage
Dim instance As IConnectionStore
Dim newConnection As Boolean
Dim returnValue As T
returnValue = instance.GetConnection(newConnection)
T GetConnection(
bool newConnection
)
T GetConnection(
bool newConnection
)
abstract GetConnection :
newConnection:bool -> 'T
function GetConnection(
newConnection : boolean
) : T
Parameters
- newConnection
Type: System.Boolean
True if a new connection is needed. Otherwise, false.
Return Value
Type: T
Specify when a new connection is needed.