Check if supplied string contains a valid IP address. Valid IP address contains 3 full stops (".") and 4 numeric values in range 0 to 255.

Namespace: SnmpSharpNet
Assembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.9.1.0 (0.9.1)

Syntax

C#
public static bool IsIP(
	string val
)
Visual Basic
Public Shared Function IsIP ( _
	val As String _
) As Boolean
Visual C++
public:
static bool IsIP(
	String^ val
)

Parameters

val
Type: System..::..String
String value

Return Value

true if string contains an IP address in dotted decimal format, otherwise false

Remarks

Written to address slow performance of IPAddress.TryParse

See Also