IConnectionStore<T>.GetConnection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Specify when a new connection is needed.