共用方式為


SPVirtualServer.MakeFullUrl method

NOTE: This API is now obsolete.

已過時。將網站的伺服器相對 URL 轉換成完整的 URL,其中包含伺服器的名稱。

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

Syntax

'宣告
<ObsoleteAttribute("Use SPWebApplication or SPIisSettings instead.",  _
    False)> _
Public Function MakeFullUrl ( _
    strUrl As String _
) As String
'用途
Dim instance As SPVirtualServer
Dim strUrl As String
Dim returnValue As String

returnValue = instance.MakeFullUrl(strUrl)
[ObsoleteAttribute("Use SPWebApplication or SPIisSettings instead.", 
    false)]
public string MakeFullUrl(
    string strUrl
)

參數

  • strUrl
    Type: System.String

    內含的站台 (例如 /sites/) 伺服器相對 URL 的字串。

傳回值

Type: System.String
字串,包含完整的 URL (例如,https://Server_Name/sites/Site_Name)。

請參閱

參照

SPVirtualServer class

SPVirtualServer members

Microsoft.SharePoint.Administration namespace