|
CsvReaderItem Property (Int32, String)
|
Gets the field with the specified name and record position. [M:hasHeaders] must be .
Namespace:
Accord.IO
Assembly:
Accord.IO (in Accord.IO.dll) Version: 3.8.0
Syntax public string this[
int record,
string field
] { get; }
Public ReadOnly Default Property Item (
record As Integer,
field As String
) As String
Get
Request Example
View SourceParameters
- record
- Type: SystemInt32
- field
- Type: SystemString
Property Value
Type:
String
The field with the specified name and record position.
Exceptions Exception | Condition |
---|
ArgumentNullException | field is or an empty string.
|
InvalidOperationException |
The CSV does not have headers ([M:HasHeaders] property is ).
|
ArgumentException | field not found.
|
ArgumentOutOfRangeException |
Record index must be > 0.
|
InvalidOperationException |
Cannot move to a previous record in forward-only mode.
|
EndOfStreamException |
Cannot read record at record.
|
MalformedCsvException |
The CSV appears to be corrupt at the current position.
|
ObjectDisposedException |
The instance has been disposed of.
|
See Also