Поделиться через


GetFullUrl Method

The GetFullUrl method of the SPUtility class returns the absolute URL for the specified server-relative URL.

Parameters

Site   A Microsoft.SharePoint.SPSite object that represents the site.

WebUrl   A string that contains the server-relative URL. For example, /[sites/]Site_Name/Folder_Name/File_Name. See Forms of URL Strings for information about the usage of URLs in Microsoft Windows SharePoint Services.

Return Value

A string that contains the absolute URL.

Remarks

If the specified site is running on a non-default port, the port number will be included in the returned URL. For example, if the site is on port 81 and "/documents/File_Name.aspx" is passed as the WebUrl value, the returned URL will be in the form "http://Server_Name:81/documents/File_Name.aspx".

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security