Home Notices Documents Classes Download Others Rice
Classes  >  uri  >  IsBaseOf(uri)
uri class : IsBaseOf(uri) method

Description

Gets a value that indicates whether the URI is a base of the specified URI.

Syntax

uriInstance.IsBaseOf(uri investigated)

Arguments

ClassNameDescription
uriinvestigatedAn instance of uri class that will be investigated.

Return value

ClassDescription
boolA value that indicates whether the URI is a base of the specified URI.

Sample code

1:

uri baseUri = new uri("http://www.somewhere.com/");

2:

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

3:

bool base = baseUri.IsBaseOf(u);

Notes

It's a wrapper of the System.Uri.IsBaseOf(Uri) method.

Links for reference

Copyright © Rice All rights reserved.