Export (0) Print
Expand All

NavigatingCancelEventArgs.WebRequest Property

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft