OpenWeb Method (Guid)
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

SPSite.OpenWeb Method (Guid)

Windows SharePoint Services 3

Returns the site with the specified GUID.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPWeb OpenWeb(
	Guid gWebId


Type: System.Guid
A GUID that specifies which site to return.

Return Value

Type: Microsoft.SharePoint.SPWeb
An SPWeb object that represents the site.
© 2016 Microsoft