Skip to content

ConnectionState is an enum, not a string #10503

Closed
@masonwheeler

Description

@masonwheeler

Type of issue

Outdated article

Description

The State property's description on this page says "Gets a string that describes the state of the connection." and down below, "The format of the string returned depends on the specific type of connection you are using."

But the property is not typed as string at all, but as ConnectionState, which is an enum.

The State property description on the DbConnection class page likewise needs to be fixed.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.data.common.dbconnection.state?view=net-8.0#system-data-common-dbconnection-state

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Data.Common/DbConnection.xml

Document Version Independent Id

918743a2-34ae-6bb2-ca98-2988508799b4

Article author

@dotnet-bot

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3Indicates issues/PRs that are low priorityarea-System.DataData APIs (ADO.NET, XML, etc).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions