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
Class | Name | Description |
uri | investigated | An instance of uri class that will be investigated. |
Return value
Class | Description |
bool | A value that indicates whether the URI is a base of the specified URI. |
Sample code
1: | uri baseUri = new uri("http://www.example.com/"); |
2: | uri u = new uri("http://www.example.com/aaa/bbb.html"); |
3: | bool base = baseUri.IsBaseOf(u); |
Notes
It's a wrapper of the System.Uri.IsBaseOf(Uri) method.