CollectorConfigStore.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.
Overloads
ISfcHasConnection.GetConnection() |
Get the current connection to query on. Return a connection supporting a single serial query, so the query must end before another one may begin. |
ISfcHasConnection.GetConnection(SfcObjectQueryMode) |
Get the current connection to query on. Return a connection supporting either a single serial query or multiple simultaneously open queries as requested. |
ISfcHasConnection.GetConnection()
Get the current connection to query on. Return a connection supporting a single serial query, so the query must end before another one may begin.
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
Implements
Applies to
ISfcHasConnection.GetConnection(SfcObjectQueryMode)
Get the current connection to query on. Return a connection supporting either a single serial query or multiple simultaneously open queries as requested.
Microsoft.SqlServer.Management.Common.ISfcConnection ISfcHasConnection.GetConnection (Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQueryMode activeQueriesMode);
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 (activeQueriesMode As SfcObjectQueryMode) As ISfcConnection Implements ISfcHasConnection.GetConnection
Parameters
- activeQueriesMode
- SfcObjectQueryMode
Returns
The connection to use, or null to use Cache mode. Cache mode avoids connection and open data reader issues.