SqlClientFactory.CreateDataAdapter 方法

定义

返回强类型的 DbDataAdapter 实例。

public:
 override System::Data::Common::DbDataAdapter ^ CreateDataAdapter();
public override System.Data.Common.DbDataAdapter CreateDataAdapter ();
abstract member CreateDataAdapter : unit -> System.Data.Common.DbDataAdapter
override this.CreateDataAdapter : unit -> System.Data.Common.DbDataAdapter
override this.CreateDataAdapter : unit -> System.Data.Common.DbDataAdapter
Public Overrides Function CreateDataAdapter () As DbDataAdapter

返回

的新强类型实例 DbDataAdapter

示例

以下代码片段返回强类型 DbDataAdapter 实例:

SqlClientFactory newFactory = SqlClientFactory.Instance;
DbDataAdapter cmd = newFactory.CreateDataAdapter();

适用于