共用方式為


Web.GetWebUrlFromPageUrl 方法

命名空間:  Microsoft.SharePoint.Client
組件:  Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)

語法

'宣告
Public Shared Function GetWebUrlFromPageUrl ( _
    context As ClientRuntimeContext, _
    pageFullUrl As String _
) As ClientResult(Of String)
'用途
Dim context As ClientRuntimeContext
Dim pageFullUrl As String
Dim returnValue As ClientResult(Of String)

returnValue = Web.GetWebUrlFromPageUrl(context, _
    pageFullUrl)
public static ClientResult<string> GetWebUrlFromPageUrl(
    ClientRuntimeContext context,
    string pageFullUrl
)

參數

傳回值

類型:Microsoft.SharePoint.Client.ClientResult<String>

請參閱

參照

Web 類別

Web 成員

Microsoft.SharePoint.Client 命名空間