SharePoint Provider::WebUrlFromPageUrl
The WebUrlFromPageUrl method returns the URL of the parent site for the specified page URL.
Arguments
Input Arguments | Required | Description |
---|---|---|
<target> |
Yes |
The Windows SharePoint Services site to query. |
<pageUrl> |
Yes |
A string that contains the absolute URL of the page. |
Remarks
No remarks.
Sample Code
Comments
A string that contains the site URL.
Example XML Request
<request>
<procedure>
<execute namespace="WSS Provider" procedure="WebUrlFromPageUrl"
impersonate="1">
<executeData>
<target>https://raven003</target>
<pageUrl>https://raven003/sites/test/Lists/Events/AllItems.aspx</pageUrl>
</executeData>
</execute>
</procedure>
</request>
Example XML Response
<executeData>
<target>https://raven003</target>
<pageUrl>https://raven003/sites/test/Lists/Events/AllItems.aspx</pageUrl>
<siteUrl>https://raven003/sites/test</siteUrl>
</executeData>
Typical C# Usage
No typical C# usage.
Applies To
Windows SharePoint Services Provider API for
Hosted Messaging and Collaboration version 3.5
Hosted Messaging and Collaboration version 3.0
Windows-based Hosting version 4.5
Windows-based Hosting version 4.0
Windows-based Hosting version 3.5
Windows-based Hosting for Applications version 1.0