[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Sets information about a network interface by associating it with a new set of network interface information.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
public static void AssociateToNetworkInterface( this Socket socket, NetworkInterfaceInfo networkInterface )
- Type: System.Net.Sockets.Socket
The network interface for which to set information.
- Type: Microsoft.Phone.Net.NetworkInformation.NetworkInterfaceInfo
The new network interface information.
Usage NoteIn Visual Basic and C#, you can call this method as an instance method on any object of type Socket. When you use instance method syntax to call this method, omit the first parameter.