SPSite.OpenWeb Method (Guid)

Returns the Web site with the specified GUID.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

[ClientCallableMethodAttribute(Name = "OpenWebById")]
public SPWeb OpenWeb(
	Guid gWebId
)

Parameters

gWebId
Type: System.Guid

A GUID that specifies which Web site to return.

Return Value

Type: Microsoft.SharePoint.SPWeb
An SPWeb object that represents the Web site.
Show: