MapWebURLToVirtualServerURL method
TOC
Collapse the table of content
Expand the table of content

SPUtility.MapWebURLToVirtualServerURL method

Returns the absolute Universal Resource Locator (URL) for the virtual server that contains the specified site.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static string MapWebURLToVirtualServerURL(
	SPWeb web,
	string url
)

Parameters

web
Type: Microsoft.SharePoint.SPWeb

A Microsoft.SharePoint.SPWeb object that represents the site.

url
Type: System.String

A string that contains the absolute URL for the site.

Return value

Type: System.String
A string that contains the absolute URL for the virtual server.
Show:
© 2016 Microsoft