IPPacketInformation.Interface Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the network interface information that is associated with a call to ReceiveMessageFrom or EndReceiveMessageFrom.

Namespace:   System.Net.Sockets
Assembly:  System (in System.dll)

public int Interface { get; }

Property Value

Type: System.Int32

An Int32 value, which represents the index of the network interface. You can use this index with GetAllNetworkInterfaces to get more information about the relevant interface.

.NET Framework
Available since 2.0
Return to top