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
- host
Type: System. . :: . .String
The host name.
Return Value
Type: System. . :: . .Boolean
true if the host name is IP v4; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.