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

TenantExtensions.SiteExists Method

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

Checks if a site collection exists, relies on tenant admin API. Sites that are recycled also return as existing sites

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

Syntax

public static bool SiteExists(this Tenant tenant, String siteFullUrl)

Parameters

tenant

  Type: Microsoft.Online.SharePoint.TenantAdministration.Tenant
  A tenant object pointing to the context of a Tenant Administration site

siteFullUrl

  Type: System.String
  URL to the site collection

Return Value

Type: bool
True if existing, false if not

See also

© 2018 Microsoft