共用方式為


SqlStoreConnection.Connect 方法

Attempts to connect to the server. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。

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

語法

'宣告
Public Overrides Function Connect As Boolean
'用途
Dim instance As SqlStoreConnection 
Dim returnValue As Boolean 

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

傳回值

型別:System.Boolean
A Boolean indicating whether the connection was successfully established. True if the connection was established. Otherwise, false.

實作

ISfcConnection.Connect()

請參閱

參考

SqlStoreConnection 類別

Microsoft.SqlServer.Management.Sdk.Sfc 命名空間