共用方式為


CreateConnectionObject 方法

不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 Creates an IDbConnection object for a connection to an instance of the SQL Server Database Engine.

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

語法

'宣告
Public Overrides Function CreateConnectionObject As IDbConnection
'用途
Dim instance As OlapConnectionInfo
Dim returnValue As IDbConnection

returnValue = instance.CreateConnectionObject()
public override IDbConnection CreateConnectionObject()
public:
virtual IDbConnection^ CreateConnectionObject() override
abstract CreateConnectionObject : unit -> IDbConnection 
override CreateConnectionObject : unit -> IDbConnection 
public override function CreateConnectionObject() : IDbConnection

傳回值

型別:System.Data. . :: . .IDbConnection
An IDbConnection object for a connection to an instance of the SQL Server Database Engine.