Skip to content

Document that OpenFileDialog.OpenFile() throws IOException #7998

@binki

Description

@binki

OpenFileDialog.OpenFile() is a thin wrapper around new FileStream(). Thus, it will throw the same exceptions. Unlike SaveFileDialog.OpenFile() which behaves differently on mono, this behavior is the same on .netfx, .netcore, and mono.

Please document that OpenFileDialog.OpenFile() will throw IOException if the file cannot be opened, such as if it was removed or renamed prior to calling OpenFile().

Metadata

Metadata

Assignees

No one assigned

    Labels

    📚 documentationPri3Indicates issues/PRs that are low priorityarea-WinFormsIssues or PRs that relate to WinForms.help wantedGood for community contributors to help [up-for-grabs]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions