Npgsql API Documentation |

# NpgsqlCommand.ExecuteReader Method (CommandBehavior)

[This is preliminary documentation and subject to change.]

Sends the CommandText to the Connection and builds a NpgsqlDataReader using one of the CommandBehavior values.

[Visual Basic]
Overloads Public Function ExecuteReader( _
ByVal cb As CommandBehavior _
) As NpgsqlDataReader
[C#]
public NpgsqlDataReader ExecuteReader(
CommandBehavior cb
);

#### Parameters

cb
  One of the CommandBehavior values.

#### Return Value

A NpgsqlDataReader object.

#### Remarks

Currently the CommandBehavior parameter is ignored.

#### See Also

NpgsqlCommand Class | Npgsql Namespace | NpgsqlCommand.ExecuteReader Overload List