Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Uri.IsDefaultPort Property

Gets whether the port value of the URI is the default for this scheme.

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

public bool IsDefaultPort { get; }

Property Value

Type: System.Boolean
A Boolean value that is true if the value in the Port property is the default port for this scheme; otherwise, false.

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