SocketExtensions 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 network interface.

Inheritance Hierarchy


Namespace: Microsoft.Phone.Net.NetworkInformation
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)


<ExtensionAttribute> _
Public NotInheritable Class SocketExtensions
public static class SocketExtensions

The SocketExtensions type exposes the following members.


Name Description
AssociateToNetworkInterface Sets information about a network interface by associating it with a new set of network interface information.
GetCurrentNetworkInterface Gets all available information about the network interface.
SetNetworkPreference Sets the preference for a network interface to use either cellular or non-cellular technology.
SetNetworkRequirement Sets the requirement for a network interface 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


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.

See Also


Microsoft.Phone.Net.NetworkInformation Namespace