OracleClientFactory.CreateCommand Methode

Definition

Gibt eine stark typisierte DbCommand-Instanz zurück.

public:
 override System::Data::Common::DbCommand ^ CreateCommand();
public override System.Data.Common.DbCommand CreateCommand ();
override this.CreateCommand : unit -> System.Data.Common.DbCommand
Public Overrides Function CreateCommand () As DbCommand

Gibt zurück

Eine neue stark typisierte DbCommand-Instanz.

Beispiele

Das folgende Codefragment gibt eine stark typisierte DbCommand instance zurück.

Dim newFactory As OracleClientFactory = OracleClientFactory.Instance  
Dim command As DbCommand = newFactory.CreateCommand()  
OracleClientFactory newFactory = OracleClientFactory.Instance;  
DbCommand command = newFactory.CreateCommand();  

Gilt für: