System.Net.NetworkInformation.IPInterfaceProperties.GetIPv4Properties Method

Provides Internet Protocol version 4 (IPv4) configuration data for this network interface.

Syntax

public abstract IPv4InterfaceProperties GetIPv4Properties ()

Returns

An System.Net.NetworkInformation.IPv4InterfaceProperties object that contains IPv4 configuration data, or null if no data is available for the interface.

Remarks

This property returns null for NetworkInterfaceType.Loopback interfaces.

For a detailed description of the information available for an interface that supports IPv4, see the System.Net.NetworkInformation.IPv4InterfaceProperties class documentation. Note that the object returned by the IPInterfaceProperties.GetIPv4Properties method reflects the configuration as of the time the object is created. This information is not updated dynamically.

Requirements

Namespace: System.Net.NetworkInformation
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0