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

TenantExtensions.GetSiteGuidByUrl Method

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

Gets the ID of site collection with specified URL

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

Syntax

public static Guid GetSiteGuidByUrl(this Tenant tenant, Uri siteFullUrl)

Parameters

tenant

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

siteFullUrl

  Type: System.Uri
  A URL that specifies a site collection to get ID.

Return Value

Type: Guid
The Guid of a site collection or an Guid.Empty if the Site does not exist

See also

© 2018 Microsoft