Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
Syntax
'Declaration
<ClientCallableMethodAttribute(Name := "OpenWebById")> _
Public Function OpenWeb ( _
gWebId As Guid _
) As SPWeb
'Usage
Dim instance As SPSite
Dim gWebId As Guid
Dim returnValue As SPWeb
returnValue = instance.OpenWeb(gWebId)
[ClientCallableMethodAttribute(Name = "OpenWebById")]
public SPWeb OpenWeb(
Guid gWebId
)
Parameters
gWebId
Type: System.GuidA GUID that specifies which Web site to return.
Return Value
Type: Microsoft.SharePoint.SPWeb
An SPWeb object that represents the Web site.