Site::OpenWeb method

Opens a new site using the specified URL.

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

No code example is currently available or this language may not be supported.

Parameters

strUrl
Type: System.String

Specifies the server-relative URL or web-relative URL of the site to open. If strurl is empty, the top-level site must be opened.

Return value

Type: Microsoft.SharePoint.Client.Web
Returns a Web instance representing the opening of a new site using the specified URL.

ExceptionCondition
[System.ArgumentException]

The specified URL must refer to a valid site. Error code: -2147024809.

It must not be a null reference (Nothing in Visual Basic).

Show: