Web.LocatePage Method

SharePoint Designer Developer Reference

Locates an open page in a Web site and returns a PageWindow object that represents the page window in which the page is displayed.

Syntax

expression.LocatePage(FileUrl, ViewMode)

expression   Required. A variable that represents a Web object.

Parameters

Name Required/Optional Data Type Description
FileUrl Required String A String that represents the document or file portion of the entire URL.
ViewMode Optional PageViewMode An PageViewMode constant that represents the view mode.

Return Value
PageWindow

See Also