WebRequestExtensions Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Defines extension methods for working with a web request.
Inheritance Hierarchy
System..::.Object
Microsoft.Phone.Net.NetworkInformation..::.WebRequestExtensions
Namespace: Microsoft.Phone.Net.NetworkInformation
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Syntax
<ExtensionAttribute> _
Public NotInheritable Class WebRequestExtensions
public static class WebRequestExtensions
The WebRequestExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
GetCurrentNetworkInterface | Gets all available information about the network interface that corresponds to a web request. | |
SetNetworkPreference | Sets the preference for a web request to use either cellular or non-cellular technology. | |
SetNetworkRequirement | Sets the requirement for a web request to use either cellular or non-cellular technology. |
Top
Remarks
The WebRequestExtensions class defines methods that get information about the network interface that corresponds to a web request. It also defines methods that set the preference or requirement for a web request to use either cellular or non-cellular technology.
For more information about extension methods, see Extension Methods (C# Programming Guide) or How to: Call an Extension Method (Visual Basic).
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1
Platforms
Windows Phone
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.