System.Uri.IsDefaultPort Property

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

Syntax

public bool IsDefaultPort { get; }

Value

true if the value in the Uri.Port property is the default port for the Uri.Scheme ; otherwise, false.

Remarks

This property is read-only.

Note: For a list of default port values, see the Uri.Port property.

Requirements

Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0