PortalApplication.GetCanonicalUrl Method
Gets the canonical form of a URL.
Namespace: Microsoft.SharePoint.Portal
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
Public Shared Function GetCanonicalUrl ( _
url As String _
) As String
'Usage
Dim url As String
Dim returnValue As String
returnValue = PortalApplication.GetCanonicalUrl(url)
public static string GetCanonicalUrl(
string url
)
Parameters
- url
Type: System.String
The URL to be canonicalized.
Return Value
Type: System.String
A string that contains a canonical URL, with the base portion of the URL replaced by an identifier that can be used with the GetMappedUrl method.