HostNameType Property

Uri.HostNameType Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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:
© 2017 Microsoft