XEStore.ISfcHasConnection.GetConnection Método (SfcObjectQueryMode)
Gets the current connection for a query.
Espacio de nombres: Microsoft.SqlServer.Management.XEvent
Ensamblado: Microsoft.SqlServer.Management.XEvent (en Microsoft.SqlServer.Management.XEvent.dll)
Sintaxis
'Declaración
Private Function GetConnection ( _
mode As SfcObjectQueryMode _
) As ISfcConnection Implements ISfcHasConnection.GetConnection
'Uso
Dim instance As XEStore
Dim mode As SfcObjectQueryMode
Dim returnValue As ISfcConnection
returnValue = CType(instance, ISfcHasConnection).GetConnection(mode)
ISfcConnection ISfcHasConnection.GetConnection(
SfcObjectQueryMode mode
)
private:
virtual ISfcConnection^ GetConnection(
SfcObjectQueryMode mode
) sealed = ISfcHasConnection::GetConnection
private abstract GetConnection :
mode:SfcObjectQueryMode -> ISfcConnection
private override GetConnection :
mode:SfcObjectQueryMode -> ISfcConnection
JScript admite el uso de implementaciones de interfaces explícitas, pero no la declaración de otras nuevas.
Parámetros
- mode
Tipo: Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQueryMode
Specifies Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQueryMode.
Valor devuelto
Tipo: Microsoft.SqlServer.Management.Common.ISfcConnection
Returns the connection, or null, in which case cache mode connection is specified.
Implementa
ISfcHasConnection.GetConnection(SfcObjectQueryMode)
Comentarios
The method returns a connection supporting either a single serial query or multiple simultaneously open queries. Cache mode avoids connection and open data reader issues.