CollectorConfigStore.ISfcHasConnection.SetConnection 方法
Sets the active connection for the domain root. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
命名空間: 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
An ISfcConnection object that represents the connection to use.
實作
ISfcHasConnection.SetConnection(ISfcConnection)