Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
UrlSubsumes method
Collapse the table of content
Expand the table of content

SPUtility.UrlSubsumes method

SharePoint 2013

A helper method that determines whether a URL subsumes the other and if so, returns an index

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static int UrlSubsumes(
	Uri uriSubsumed,
	Uri uriSubsumer,
	bool caseSensitive


Type: System.Uri

The URL that is being subsumed.

Type: System.Uri

The URL that subsumes the other one.

Type: System.Boolean

Return value

Type: System.Int32
int - the position at which the subsumer URL stops subsuming the target; -1 if it does not subsume
© 2015 Microsoft