Partilhar via


WebServerRelativeURL Property

Applies to: SharePoint Foundation 2010

Returns the full server-relative URL to the Microsoft SharePoint Foundation 2010 subsite in which this page exists.

objWebPartPage.WebServerRelativeURL

Parameters

Parameter

Description

objWebPartPage

A reference to the WebPartPage Object.

Example 1: Microsoft Visual Basic Scripting Edition

Code

Set strWebSvrRelativeURL = WPSC.WebPartPage.WebServerRelativeURL

Example 2: Microsoft Microsoft JScript

Code

var strWebSvrRelativeURL = WPSC.WebPartPage.WebServerRelativeURL;

Requirements

Applies to: WebPartPage Object

See Also

Reference

WebURL Property

Other Resources

Web Part Page Services Component (WPSC) Object Model