Npgsql Api Docs |

# NpgsqlCommand.ExecuteReader Method (CommandBehavior)

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#]
new 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