IDBContextGetConnection Method (Boolean)

Relativity API
Gets a database connection, with option to open if closed.

Namespace:  Relativity.API
Assembly:  Relativity.API (in Relativity.API.dll) Version: 17.0.1.1 588f15fd7550dbf54835f3417a0142d4ea37dbb5
Syntax

SqlConnection GetConnection(
	bool openConnectionIfClosed
)

Parameters

openConnectionIfClosed
Type: SystemBoolean
Boolean value indicating if the connection should be opened upon its creation.

Return Value

Type: SqlConnection
Returns an open connection to a SQL Server database. This class cannot be inherited.
See Also

Reference