Skip to content

This documentation is incorrect #12069

@jroy-meno

Description

@jroy-meno

Type of issue

Code doesn't work

Feedback

It says the following code should throw an error but it does not:

$wc = New-Object System.Net.WebClient
$wc.DownloadFile("http://www.contoso.com/MyDoc.doc","C:\temp\MyDoc.doc")

Page URL

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_try_catch_finally?view=powershell-7.5

Content source URL

https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.5/Microsoft.PowerShell.Core/About/about_Try_Catch_Finally.md

Author

@sdwheeler

Platform Id

0d6a429c-6a04-fe7b-c5ef-f15a0f00dc00

Document Id

b74956ec-db38-407d-72c0-5103bceaa428

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions