Share via


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 (
         stringhost
)

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 and 4.1.

See Also

Reference

Uri Class
Uri Members
System Namespace