共用方式為


ISfcConnection.Connect 方法

Connects to the target server.

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

語法

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

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

傳回值

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

請參閱

參考

ISfcConnection 介面

Microsoft.SqlServer.Management.Common 命名空間