Open
Description
Type of issue
Typo
Description
In the second paragraph of the Remarks section of the documentation for DataTableReader.GetOrdinal(string name), the article incorrectly states that an IndexOutOfRangeException is thrown if a column number is not found. It should state that and ArgumentException is thrown, as per the list of Exceptions earlier in the document as this is the actual exception type that is thrown.
[Enter feedback here]
Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.data.datatablereader.getordinal?view=net-9.0
Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Data/DataTableReader.xml
Document Version Independent Id
ced3403b-74fa-8e13-58cb-3695856c47e4
Platform Id
fa314942-a96e-aa4e-ceb5-16bfdcdbc659