IntegrationServices.ISfcHasConnection.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.
Indicates the connection to get.
Overloads
ISfcHasConnection.GetConnection() |
Retrieves the server connection to the backing storage. |
ISfcHasConnection.GetConnection(SfcObjectQueryMode) |
Retrieves the current connection to query on. Returns a connection supporting either a single serial query or multiple simultaneously open queries as requested. |
ISfcHasConnection.GetConnection()
Retrieves the server connection to the backing storage.
virtual Microsoft::SqlServer::Management::Common::ISfcConnection ^ Microsoft.SqlServer.Management.Sdk.Sfc.ISfcHasConnection.GetConnection() = Microsoft::SqlServer::Management::Sdk::Sfc::ISfcHasConnection::GetConnection;
Microsoft.SqlServer.Management.Common.ISfcConnection ISfcHasConnection.GetConnection ();
abstract member Microsoft.SqlServer.Management.Sdk.Sfc.ISfcHasConnection.GetConnection : unit -> Microsoft.SqlServer.Management.Common.ISfcConnection
override this.Microsoft.SqlServer.Management.Sdk.Sfc.ISfcHasConnection.GetConnection : unit -> Microsoft.SqlServer.Management.Common.ISfcConnection
Function GetConnection () As ISfcConnection Implements ISfcHasConnection.GetConnection
Returns
An object that contains the server connection.
Implements
Applies to
ISfcHasConnection.GetConnection(SfcObjectQueryMode)
Retrieves the current connection to query on. Returns a connection supporting either a single serial query or multiple simultaneously open queries as requested.
virtual Microsoft::SqlServer::Management::Common::ISfcConnection ^ Microsoft.SqlServer.Management.Sdk.Sfc.ISfcHasConnection.GetConnection(Microsoft::SqlServer::Management::Sdk::Sfc::SfcObjectQueryMode mode) = Microsoft::SqlServer::Management::Sdk::Sfc::ISfcHasConnection::GetConnection;
Microsoft.SqlServer.Management.Common.ISfcConnection ISfcHasConnection.GetConnection (Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQueryMode mode);
abstract member Microsoft.SqlServer.Management.Sdk.Sfc.ISfcHasConnection.GetConnection : Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQueryMode -> Microsoft.SqlServer.Management.Common.ISfcConnection
override this.Microsoft.SqlServer.Management.Sdk.Sfc.ISfcHasConnection.GetConnection : Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQueryMode -> Microsoft.SqlServer.Management.Common.ISfcConnection
Function GetConnection (mode As SfcObjectQueryMode) As ISfcConnection Implements ISfcHasConnection.GetConnection
Parameters
- mode
- SfcObjectQueryMode
The mode of the connection.
Returns
The connection to use, or null to use cache mode. Cache mode avoids connection and open data reader issues.