Uri.IsIPv4 Method

Returns whether the host name is an IP address with 4 bytes, such as: 192.12.1.1

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

protected bool IsIPv4 (
         string host
)

Parameters

  • host
    A host name.

Return Value

true if host is a string containing an IPv4 address; otherwise, false.

Version Information

Available in the .NET Micro Framework versions 4.0, 4.1, and 4.2.

See Also

Reference

Uri Class
Uri Members
System Namespace