Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetIPv4Properties Method
Collapse the table of content
Expand the table of content

IPInterfaceProperties.GetIPv4Properties Method

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

Namespace: System.Net.NetworkInformation
Assembly: System (in system.dll)

public abstract IPv4InterfaceProperties GetIPv4Properties ()
public abstract IPv4InterfaceProperties GetIPv4Properties ()
public abstract function GetIPv4Properties () : IPv4InterfaceProperties
Not applicable.

Return Value

An IPv4InterfaceProperties object that contains IPv4 configuration data, or a null reference (Nothing in Visual Basic) if no data is available for the interface.

Exception typeCondition

NetworkInformationException

The interface does not support the IPv4 protocol.

This property returns a null reference (Nothing in Visual Basic) for Loopback interfaces.

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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft