Udostępnij przez


Metoda PolicyStore.ISfcHasConnection.GetConnection (SfcObjectQueryMode)

Wskazuje połączenie pobieranie przy użyciu trybu SfcObjectQuery.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Dmf
Zestaw:  Microsoft.SqlServer.Dmf (w Microsoft.SqlServer.Dmf.dll)

Składnia

'Deklaracja
<STraceConfigurationAttribute(SkipAutoTrace := True)> _
Private Function GetConnection ( _
    mode As SfcObjectQueryMode _
) As ISfcConnection Implements ISfcHasConnection.GetConnection
'Użycie
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 
Język JScript obsługuje używanie jawnych implementacji interfejsów, ale nie obsługuje deklarowania nowych.

Wartość zwracana

Typ: Microsoft.SqlServer.Management.Common.ISfcConnection
ISfcConnection Do pobieranie przy użyciu trybu SfcObjectQuery.

Implementacje

ISfcHasConnection.GetConnection(SfcObjectQueryMode)