Share via


PolicyStore.ISfcHasConnection.GetConnection Method (SfcObjectQueryMode)

Indicates the connection to get using the SfcObjectQuery mode.

Namespace:  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Syntax

'Declaration
<STraceConfigurationAttribute(SkipAutoTrace := True)> _
Private Function GetConnection ( _
    mode As SfcObjectQueryMode _
) As ISfcConnection Implements ISfcHasConnection.GetConnection
'Usage
Dim instance As PolicyStore
Dim mode As SfcObjectQueryMode
Dim returnValue As ISfcConnection

returnValue = CType(instance, ISfcHasConnection).GetConnection(mode)
[STraceConfigurationAttribute(SkipAutoTrace = true)]
ISfcConnection ISfcHasConnection.GetConnection(
    SfcObjectQueryMode mode
)
[STraceConfigurationAttribute(SkipAutoTrace = true)]
private:
virtual ISfcConnection^ GetConnection(
    SfcObjectQueryMode mode
) sealed = ISfcHasConnection::GetConnection
[<STraceConfigurationAttribute(SkipAutoTrace = true)>]
private abstract GetConnection : 
        mode:SfcObjectQueryMode -> ISfcConnection 
[<STraceConfigurationAttribute(SkipAutoTrace = true)>]
private override GetConnection : 
        mode:SfcObjectQueryMode -> ISfcConnection 
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Return Value

Type: Microsoft.SqlServer.Management.Common.ISfcConnection
The ISfcConnection to get using the SfcObjectQuery mode.

Implements

ISfcHasConnection.GetConnection(SfcObjectQueryMode)