Uri.Host Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the host component of this instance.
Assembly: System (in System.dll)
Property Value
Type: System.StringA String that contains the host name. This is usually the DNS host name or IP address of the server.
| Exception | Condition |
|---|---|
| InvalidOperationException | This property is valid only for an absolute Uri instance. |
The Host property gets the host component of this Uri instance. This property value does not include the port number.
Show: