UriHostNameType Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Defines host name types for the Uri.CheckHostName method.

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

public enum UriHostNameType

Member nameDescription
Basic

The host is set, but the type cannot be determined.

Dns

The host name is a domain name system (DNS) style host name.

IPv4

The host name is an Internet Protocol (IP) version 4 host address.

IPv6

The host name is an Internet Protocol (IP) version 6 host address.

Unknown

The type of the host name is not supplied.

The UriHostNameType enumeration defines the values that the Uri.CheckHostName method can return.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show: