Mono Class Library: System.Net.IPAddress Overview | Members

System.Net.IPAddress.Parse Method

Converts a string representation of an IP address in dotted-quad notation, to a System.Net.IPAddress instance.

public static IPAddress Parse (string ipString)

Parameters

ipString
A string in dotted-quad notation containing the IP address to convert.

Returns

A new System.Net.IPAddress instance that represents the address specified in ipString.

Exceptions

TypeReason
ArgumentNullExceptionipString is null.
FormatExceptionipString is not a valid IP address.

Remarks

Note:

An example of a string in dotted-quad notation is "127.0.0.1".

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0