Skip to content

Commit a33f8fb

Browse files
authored
Fix incorrect exception type in DataTableReader.GetOrdinal documentation (#11461)
1 parent 95c271f commit a33f8fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System.Data/DataTableReader.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ Russ
14981498
## Remarks
14991499
Because most of the methods provided by the <xref:System.Data.DataTableReader> class must be provided with an ordinal column number, you can use the `GetOrdinal` method to retrieve the column number, given the name of the column.
15001500
1501-
`GetOrdinal` performs a case-sensitive lookup first. If it fails, a second case-insensitive search is made. If the column number is not found an `IndexOutOfRangeException` is thrown.
1501+
`GetOrdinal` performs a case-sensitive lookup first. If it fails, a second case-insensitive search is made. If the column number is not found an `ArgumentException` is thrown.
15021502
15031503
`GetOrdinal` is kana-width insensitive.
15041504

0 commit comments

Comments
 (0)