Uri.HostNameType Property

July 28, 2014

Gets the type of the host name specified in the URI.

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

public UriHostNameType HostNameType { get; }

Property Value

Type: System.UriHostNameType
A member of the UriHostNameType enumeration.

ExceptionCondition
InvalidOperationException

This instance represents a relative URI, and this property is valid only for absolute URIs.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2014 Microsoft