Share via


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

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.

See Also

Reference

PortalApplication Class

PortalApplication Members

Microsoft.SharePoint.Portal Namespace