IConnectionStore<T>.GetConnection Method

Definition

Retrieves the interface for the generic connection store.

Overloads

GetConnection()

Retrieves a new connection from the store with the default property values.

GetConnection(Boolean)

Retrieves a new connection or duplicates the existing connection from the store.

GetConnection()

Retrieves a new connection from the store with the default property values.

public:
 T GetConnection();
public T GetConnection();
abstract member GetConnection : unit -> 'T
Public Function GetConnection () As T

Returns

T

The new connection provided by the store.

Applies to

GetConnection(Boolean)

Retrieves a new connection or duplicates the existing connection from the store.

public:
 T GetConnection(bool newConnection);
public T GetConnection(bool newConnection);
abstract member GetConnection : bool -> 'T
Public Function GetConnection (newConnection As Boolean) As T

Parameters

newConnection
Boolean

True if a new connection is needed. Otherwise, false.

Returns

T

Specify when a new connection is needed.

Applies to