SqlCeProviderFactory.CreateConnection 方法
傳回提供者類別的新執行個體,該類別實作 [System.Data.Common.DbConnection]。
命名空間: System.Data.SqlServerCe
組件: System.Data.SqlServerCe (在 System.Data.SqlServerCe.dll 中)
語法
'宣告
Public Overrides Function CreateConnection As DbConnection
'用途
Dim instance As SqlCeProviderFactory
Dim returnValue As DbConnection
returnValue = instance.CreateConnection()
public override DbConnection CreateConnection()
public:
virtual DbConnection^ CreateConnection() override
abstract CreateConnection : unit -> DbConnection
override CreateConnection : unit -> DbConnection
public override function CreateConnection() : DbConnection
傳回值
型別:System.Data.Common.DbConnection
[System.Data.Common.DbConnection] 的新執行個體。