Share via


SqlCeProviderFactory.CreateCommand Method

Returns a new instance of the provider's class that implements the System.Data.Common.DbCommand.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

Syntax

'Declaration
Public Overrides Function CreateCommand As DbCommand
'Usage
Dim instance As SqlCeProviderFactory
Dim returnValue As DbCommand

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

Return Value

Type: System.Data.Common.DbCommand
A new instance of [System.Data.Common.DbCommand].

See Also

Reference

SqlCeProviderFactory Class

System.Data.SqlServerCe Namespace