SPUtility.UrlSubsumes method

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)

Syntax

'Declaration
Public Shared Function UrlSubsumes ( _
    uriSubsumed As Uri, _
    uriSubsumer As Uri, _
    caseSensitive As Boolean _
) As Integer
'Usage
Dim uriSubsumed As Uri
Dim uriSubsumer As Uri
Dim caseSensitive As Boolean
Dim returnValue As Integer

returnValue = SPUtility.UrlSubsumes(uriSubsumed, _
    uriSubsumer, caseSensitive)
public static int UrlSubsumes(
    Uri uriSubsumed,
    Uri uriSubsumer,
    bool caseSensitive
)

Parameters

  • uriSubsumed
    Type: System.Uri

    The URL that is being subsumed.

  • uriSubsumer
    Type: System.Uri

    The URL that subsumes the other one.

Return value

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

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace