Uri.IsDefaultPort Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets whether the port value of the URI is the default for this scheme.
Assembly: System (in System.dll)
Property Value
Type: System.BooleanA Boolean value that is true if the value in the Port property is the default port for this scheme; otherwise, false.
| Exception | Condition |
|---|---|
| InvalidOperationException | This instance represents a relative URI, and this property is valid only for absolute URIs. |
Show: