Share via


IsIPv4 Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Determines whether the host name is an IP address 4 bytes, such as 192.1.1.1.

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

Syntax

'Declaration
Protected Function IsIPv4 ( _
    host As String _
) As Boolean
protected bool IsIPv4(
    string host
)
protected:
bool IsIPv4(
    String^ host
)
member IsIPv4 : 
        host:string -> bool 
protected function IsIPv4(
    host : String
) : boolean

Parameters

Return Value

Type: System. . :: . .Boolean
true if the host name is IP v4; otherwise, false.

.NET Framework Security

See Also

Reference

Uri Class

System Namespace