PolicyStore.ISfcHasConnection.SetConnection 方法

Indicates the connection to set.

命名空间:  Microsoft.SqlServer.Management.Dmf
程序集:  Microsoft.SqlServer.Dmf(在 Microsoft.SqlServer.Dmf.dll 中)

语法

声明
<STraceConfigurationAttribute(SkipAutoTrace := True)> _
Private Sub SetConnection ( _
    connection As ISfcConnection _
) Implements ISfcHasConnection.SetConnection
用法
Dim instance As PolicyStore 
Dim connection As ISfcConnection 

CType(instance, ISfcHasConnection).SetConnection(connection)
[STraceConfigurationAttribute(SkipAutoTrace = true)]
void ISfcHasConnection.SetConnection(
    ISfcConnection connection
)
[STraceConfigurationAttribute(SkipAutoTrace = true)]
private:
virtual void SetConnection(
    ISfcConnection^ connection
) sealed = ISfcHasConnection::SetConnection
[<STraceConfigurationAttribute(SkipAutoTrace = true)>]
private abstract SetConnection : 
        connection:ISfcConnection -> unit 
[<STraceConfigurationAttribute(SkipAutoTrace = true)>]
private override SetConnection : 
        connection:ISfcConnection -> unit
JScript 支持使用显式接口实现,但不支持声明新显式接口实现。

参数

实现

ISfcHasConnection.SetConnection(ISfcConnection)

请参阅

参考

PolicyStore 类

Microsoft.SqlServer.Management.Dmf 命名空间