UriParser.IsBaseOf Method (Uri, Uri)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Determines whether baseUri is a base URI for relativeUri.

Namespace:   System
Assembly:  System (in System.dll)

protected virtual bool IsBaseOf(
	Uri baseUri,
	Uri relativeUri
)

Parameters

baseUri
Type: System.Uri

The base URI.

relativeUri
Type: System.Uri

The URI to test.

Return Value

Type: System.Boolean

true if baseUri is a base URI for relativeUri; otherwise, false.

.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: