共用方式為


ISfcConnection.Disconnect 方法

Disconnects the connection.

命名空間:  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 支援明確介面實作的使用,但不支援新介面實作的宣告。

傳回值

型別:System. . :: . .Boolean
A Boolean which is true if the connection is disconnected; otherwise, false.

實作

ISfcConnection. . :: . .Disconnect() () () ()