Table of contents
TOC
Collapse the table of content
Expand the table of content

WebExtensions.GetWeb Method

SharePoint Dev Documents|Last Updated: 5/20/2017
|
1 Contributor

Returns the child Web site with the specified leaf URL.

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static Web GetWeb(this Web parentWeb, String leafUrl)

Parameters

parentWeb

  Type: Microsoft.SharePoint.Client.Web
  The Web site to check under

leafUrl

  Type: System.String
  A string that represents the URL leaf name.

Return Value

Type: Web
The requested Web, if it exists, otherwise null.

Remarks

The ServerRelativeUrl property of the retrieved Web is instantiated.

See also

© 2018 Microsoft