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

WebExtensions.WebExists Method

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

Determines if a child Web site with the specified leaf URL exists.

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

Syntax

public static bool WebExists(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: bool
true if the Web (site) exists; otherwise false

See also

© 2018 Microsoft