Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (日本語) » SQL Anywhere サーバ - プログラミング » SQL Anywhere データ・アクセス API » SQL Anywhere .NET 2.0 API リファレンス » iAnywhere.Data.SQLAnywhere ネームスペース (.NET 2.0) » SACommand クラス » ExecuteReader メソッド

 

ExecuteReader(CommandBehavior) メソッド

結果セットを返す SQL 文を実行します。

構文
Visual Basic

Public Function ExecuteReader( _
   ByVal behavior As CommandBehavior _
) As SADataReader
C#

public SADataReader ExecuteReader(
   CommandBehavior behavior
);
パラメータ
  • behavior   CloseConnection、Default、KeyInfo、SchemaOnly、SequentialAccess、SingleResult、SingleRow のいずれか 1 つ。

    このパラメータの詳細については、.NET Framework のマニュアルの CommandBehavior 列挙を参照してください。

戻り値

SADataReader オブジェクトとして返される結果セット。

備考

この文は、必要に応じて CommandText と Parameters を持つ現在の SACommand オブジェクトです。SADataReader オブジェクトは、読み込み専用、前方専用の結果セットです。修正可能な結果セットの場合、SADataAdapter を使用します。

参照