Gets or sets how many rows of data to fetch at a time.
[Visual Basic] Public Property RowFetchCount As Integer [C#] public int RowFetchCount {get; set;} [C++] public: __property int get_RowFetchCount(); public: __property void set_RowFetchCount(int); [JScript] public function get RowFetchCount() : int; public function set RowFetchCount(int);
The number of data rows to be fetched. The default is 1.
Exception Type | Condition |
---|---|
InvalidRowFetchCount(System.Int32) | The value is set to a value less than 1. |
The following example creates an ADOCommand and sets some of its properties.
ADOCommand Class | ADOCommand Members | System.Data.ADO Namespace | CommandText | CommandTimeout | CommandType | ActiveConnection | CommandBehavior | UpdatedRowSource | NamedParameters