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)