共用方式為


Disconnect 方法

Disconnects from the target server.

命名空間:  Microsoft.SqlServer.Management.Common
組件:  Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)

語法

'宣告
Function Disconnect As Boolean
'用途
Dim instance As ISfcConnection
Dim returnValue As Boolean

returnValue = instance.Disconnect()
bool Disconnect()
bool Disconnect()
abstract Disconnect : unit -> bool 
function Disconnect() : boolean

傳回值

型別:System. . :: . .Boolean
True if the connection succeeds; otherwise, false.