OracleClientFactory.CreateCommand Yöntem

Tanım

Kesin olarak belirlenmiş DbCommand bir örnek döndürür.

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

Döndürülenler

Türü kesin olarak belirlenmiş yeni bir DbCommandörneği.

Örnekler

Aşağıdaki kod parçası kesin olarak belirlenmiş DbCommand bir örnek döndürür.

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

Şunlara uygulanır