UriHostNameType Enumeration


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

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


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


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


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


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