Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Documentation incorrectly states that an IndexOutOfRangeException is thrown #11442

Copy link
Copy link
Open
@trevor-anthill

Description

@trevor-anthill
Issue body actions

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

No one assigned

    Labels

    area-System.DataData APIs (ADO.NET, XML, etc).Data APIs (ADO.NET, XML, etc).untriagedNew issue has not been triaged by the area ownerNew 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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.