NavigationFailedEventArgs.WebResponse Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the web response that was returned after attempting to download the requested the specified content.

Namespace:   System.Windows.Navigation
Assembly:  PresentationFramework (in PresentationFramework.dll)

public WebResponse WebResponse { get; }

Property Value

Type: System.Net.WebResponse

The System.Net.WebResponse that was returned after attempting to download the requested the specified content. If the navigation failed, WebResponse is null.

System.Net.WebResponse is an abstract base class that encapsulates a web response, and is protocol agnostic. For each common protocol, the .NET Framework includes a class that derives from System.Net.WebResponse and extends it with protocol-specific state, including:

.NET Framework
Available since 3.0
Return to top
Show: