Aracılığıyla paylaş


OdbcFactory.CreateCommandBuilder Yöntem

Tanım

Kesin türe sahip DbCommandBuilder bir örnek döndürür.

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

Döndürülenler

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

Örnekler

Aşağıdaki kod parçası kesin türe sahip DbCommandBuilder bir örnek döndürür:

Dim newFactory As OdbcFactory = OdbcFactory.Instance
Dim cmd As DbCommandBuilder = newFactory.CreateCommandBuilder()
OdbcFactory newFactory = OdbcFactory.Instance;
DbCommandBuilder cmd = newFactory.CreateCommandBuilder();

Şunlara uygulanır