Uri.Authority Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the Domain Name System (DNS) host name or IP address and the port number for a server.
Assembly: System (in System.dll)
Property Value
Type: System.StringA String containing the authority component of the URI represented by this instance.
| Exception | Condition |
|---|---|
| InvalidOperationException | This instance represents a relative URI, and this property is valid only for absolute URIs. |
Show: