NavigatingCancelEventArgs.WebRequest 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 WebRequest object that is used to request the specified content.

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

public WebRequest WebRequest { get; }

Property Value

Type: System.Net.WebRequest

Gets the System.Net.WebRequest object that is used to request the specified content.

System.Net.WebRequest is an abstract base class that encapsulates a Web request, and is protocol agnostic. For each common protocol, the .NET Framework includes a class that derives from System.Net.WebRequest and extends it with protocol specific state and behavior, including:

You can both view and modify WebRequest details.

WebRequest is null when navigation occurs by:

.NET Framework
Available since 3.0
Return to top
Show: