Поделиться через


Метод ISfcHasConnection.GetConnection (SfcObjectQueryMode)

Indicates the connection to get using the SfcObjectQuery mode.

Пространство имен:  Microsoft.SqlServer.Management.Dmf
Сборка:  Microsoft.SqlServer.Dmf (в Microsoft.SqlServer.Dmf.dll)

Синтаксис

'Декларация
<STraceConfigurationAttribute(SkipAutoTrace := True)> _
Private Function GetConnection ( _
    mode As SfcObjectQueryMode _
) As ISfcConnection Implements ISfcHasConnection.GetConnection
'Применение
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 поддерживает использование явных реализаций интерфейса, но не объявление новых.

Возвращаемое значение

Тип: Microsoft.SqlServer.Management.Common. . :: . .ISfcConnection
The ISfcConnection to get using the SfcObjectQuery mode.

Реализует

ISfcHasConnection. . :: . .GetConnection(SfcObjectQueryMode)