uri class : IsDefaultPort getter

Description

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

Syntax

uriInstance.IsDefaultPort

Arguments

None.

Return value

ClassDescription
boolA value that indicates whether the port value of the URI is the default for this scheme.

Sample code

1:

uri u = new uri("http://www.example.com/aaa/bbb.html");

2:

bool default = u.IsDefaultPort;

Notes

It's a wrapper of the System.Uri.IsDefaultPort property.

Links for reference

Copyright © Cooker All rights reserved.