ServerConnection.ISfcConnection.Disconnect 方法
断开连接。
命名空间: Microsoft.SqlServer.Management.Common
程序集: Microsoft.SqlServer.ConnectionInfo(在 Microsoft.SqlServer.ConnectionInfo.dll 中)
语法
声明
Private Function Disconnect As Boolean
Implements ISfcConnection.Disconnect
用法
Dim instance As ServerConnection
Dim returnValue As Boolean
returnValue = CType(instance, ISfcConnection).Disconnect()
bool ISfcConnection.Disconnect()
private:
virtual bool Disconnect() sealed = ISfcConnection::Disconnect
private abstract Disconnect : unit -> bool
private override Disconnect : unit -> bool
JScript 支持使用显式接口实现,但不支持声明新显式接口实现。
返回值
类型:Boolean
一个 Boolean。如果断开连接,则为 true;否则为 false。