Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Looks in this collection for a prefix that matches the beginning of the server-relative request url.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function FindSiteRoot ( _
serverRelativeRequestPath As String, _
<OutAttribute> ByRef matchedPrefix As SPPrefix _
) As String
'Usage
Dim instance As SPPrefixCollection
Dim serverRelativeRequestPath As String
Dim matchedPrefix As SPPrefix
Dim returnValue As String
returnValue = instance.FindSiteRoot(serverRelativeRequestPath, _
matchedPrefix)
public string FindSiteRoot(
string serverRelativeRequestPath,
out SPPrefix matchedPrefix
)
Parameters
serverRelativeRequestPath
Type: System.StringThe server-relative request url.
- matchedPrefix
Type: Microsoft.SharePoint.Administration.SPPrefix
Return value
Type: System.String
The portion of the server relative request url that represents a site, or null if no match could be found.