ISfcHasConnection.SetConnection 方法
设置域根的活动连接。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
命名空间: Microsoft.SqlServer.Management.Collector
程序集: Microsoft.SqlServer.Management.Collector(在 Microsoft.SqlServer.Management.Collector.dll 中)
语法
声明
Private Sub SetConnection ( _
connection As ISfcConnection _
) Implements ISfcHasConnection.SetConnection
用法
Dim instance As CollectorConfigStore
Dim connection As ISfcConnection
CType(instance, ISfcHasConnection).SetConnection(connection)
void ISfcHasConnection.SetConnection(
ISfcConnection connection
)
private:
virtual void SetConnection(
ISfcConnection^ connection
) sealed = ISfcHasConnection::SetConnection
private abstract SetConnection :
connection:ISfcConnection -> unit
private override SetConnection :
connection:ISfcConnection -> unit
JScript 支持使用显式接口实现,但不支持声明新显式接口实现。
参数
- connection
类型:Microsoft.SqlServer.Management.Common. . :: . .ISfcConnection
一个 ISfcConnection 对象,该对象表示要使用的连接。