Skip to content

Documentation incorrectly states that an IndexOutOfRangeException is thrown #11442

Open
@trevor-anthill

Description

@trevor-anthill

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

Article author

@dotnet-bot

Metadata

Metadata

Assignees

Labels

area-System.DataData APIs (ADO.NET, XML, etc).untriagedNew issue has not been triaged by the area owner

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions