Home Notices Documents Classes Download Others Rice
Classes  >  uri  >  IsDefaultPort
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.somewhere.com/aaa/bbb.html");

2:

bool default = u.IsDefaultPort;

Notes

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

Links for reference

Copyright © Rice All rights reserved.