SPUtility.MapWebURLToVirtualServerURL method
會傳回包含指定站台的虛擬伺服器的絕對通用資源定位器 (URL)。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function MapWebURLToVirtualServerURL ( _
web As SPWeb, _
url As String _
) As String
'用途
Dim web As SPWeb
Dim url As String
Dim returnValue As String
returnValue = SPUtility.MapWebURLToVirtualServerURL(web, _
url)
public static string MapWebURLToVirtualServerURL(
SPWeb web,
string url
)
參數
web
Type: Microsoft.SharePoint.SPWebMicrosoft.SharePoint.SPWeb物件,代表該網站。
url
Type: System.String包含網站的絕對 URL 字串。
傳回值
Type: System.String
包含的虛擬伺服器的絕對 URL 字串。