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. [Edit]

public static IPAddress Parse (string ipString)

Parameters

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

Returns

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

Exceptions

TypeReason
ArgumentNullExceptionipString is null. [Edit]
FormatExceptionipString is not a valid IP address. [Edit]

Remarks

Note:

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

[Edit]

Requirements

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