Server.ISfcHasConnection.SetConnection 方法
标识为仅供参考。不提供支持。不保证以后的兼容性。 Sets a connection to an Sfc backing store.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Private Sub SetConnection ( _
connection As ISfcConnection _
) Implements ISfcHasConnection.SetConnection
用法
Dim instance As Server
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
A ISfcConnection object that specifies the connection information.
实现
ISfcHasConnection.SetConnection(ISfcConnection)