共用方式為


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
)

參數

傳回值

Type: System.String
包含的虛擬伺服器的絕對 URL 字串。

請參閱

參照

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace