共用方式為


ISfcConnection.Connect 方法

Returns a value that indicates the server to connect using an SFC connection.

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

語法

'宣告
Private Function Connect As Boolean
    Implements ISfcConnection.Connect
'用途
Dim instance As ServerConnection
Dim returnValue As Boolean

returnValue = CType(instance, ISfcConnection).Connect()
bool ISfcConnection.Connect()
private:
virtual bool Connect() sealed = ISfcConnection::Connect
private abstract Connect : unit -> bool 
private override Connect : unit -> bool 
JScript 支援明確介面實作的使用,但不支援新介面實作的宣告。

傳回值

型別:System. . :: . .Boolean
true if the connection is running; otherwise, false.

實作

ISfcConnection. . :: . .Connect() () () ()