Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

SPSite.OpenWeb Method

Windows SharePoint Services 3

Returns the specified Web site from the site collection.

  NameDescription
Public method OpenWeb() Returns the site that is associated with the URL that is used in an SPSite constructor.
Public method OpenWeb(Guid) Returns the site with the specified GUID.
Public method OpenWeb(String) Returns the site that is located at the specified server-relative or site-relative URL.
Public method OpenWeb(String, Boolean) Returns the site that is located at the specified server-relative or site-relative URL based on a Boolean value that specifies whether the exact URL must be supplied.
Top

Community Additions

ADD
Show:
© 2015 Microsoft