SqlClientFactory.CreateCommandBuilder 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回強型別的 DbCommandBuilder 執行個體。
public:
override System::Data::Common::DbCommandBuilder ^ CreateCommandBuilder();
public override System.Data.Common.DbCommandBuilder CreateCommandBuilder ();
abstract member CreateCommandBuilder : unit -> System.Data.Common.DbCommandBuilder
override this.CreateCommandBuilder : unit -> System.Data.Common.DbCommandBuilder
override this.CreateCommandBuilder : unit -> System.Data.Common.DbCommandBuilder
Public Overrides Function CreateCommandBuilder () As DbCommandBuilder
傳回
的新強型別實例 DbCommandBuilder 。
範例
下列程式碼片段會傳回強型別 DbCommandBuilder 實例:
SqlClientFactory newFactory = SqlClientFactory.Instance;
DbCommandBuilder cmd = newFactory.CreateCommandBuilder();