Site.OpenWebById method

Returns the site with the specified GUID.

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

Syntax

'Declaration
Public Function OpenWebById ( _
    gWebId As Guid _
) As Web
'Usage
Dim instance As Site
Dim gWebId As Guid
Dim returnValue As Web

returnValue = instance.OpenWebById(gWebId)
public Web OpenWebById(
    Guid gWebId
)

Parameters

  • gWebId
    Type: System.Guid

    A GUID that specifies which site to return.

Return value

Type: Microsoft.SharePoint.Client.Web
Returns a Web.instance representing the site with the specified GUID.

See also

Reference

Site class

Site members

Microsoft.SharePoint.Client namespace