Share via


SPSite.OpenWeb Method

Include Protected Members
Include Inherited Members

Returns the specified Web site from the site collection.

Overload List

  Name Description
OpenWeb() Returns the site that is associated with the URL that is used in an SPSite constructor.
OpenWeb(Guid) Returns the site with the specified GUID.
OpenWeb(String) Returns the site that is located at the specified server-relative or site-relative URL.
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

See Also

Reference

SPSite Class

SPSite Members

Microsoft.SharePoint Namespace