共用方式為


GetConnectionObject 方法

Returns the SFC interface object that represents the connection to the instance of SQL Server.

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

語法

'宣告
Public Function GetConnectionObject As ISfcConnection
'用途
Dim instance As RegisteredServer
Dim returnValue As ISfcConnection

returnValue = instance.GetConnectionObject()
public ISfcConnection GetConnectionObject()
public:
ISfcConnection^ GetConnectionObject()
member GetConnectionObject : unit -> ISfcConnection 
public function GetConnectionObject() : ISfcConnection

傳回值

型別:Microsoft.SqlServer.Management.Common. . :: . .ISfcConnection
A ISfcConnection interface object value that represents the connection to the instance of SQL Server.

備註

只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。