This topic has not yet been rated - Rate this topic

WebRequestExtensions Class

July 26, 2012

Defines extension methods for working with a web request.

System.Object
  Microsoft.Phone.Net.NetworkInformation.WebRequestExtensions

Namespace:  Microsoft.Phone.Net.NetworkInformation
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
'Declaration
<ExtensionAttribute> _
Public NotInheritable Class WebRequestExtensions

The WebRequestExtensions type exposes the following members.

  NameDescription
Public methodStatic memberGetCurrentNetworkInterfaceGets all available information about the network interface that corresponds to a web request.
Public methodStatic memberSetNetworkPreferenceSets the preference for a web request to use either cellular or non-cellular technology.
Public methodStatic memberSetNetworkRequirementSets the requirement for a web request to use either cellular or non-cellular technology.
Top

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).

Windows Phone OS

Supported in: 7.1

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.