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

ListExtensions.ListExists Method

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

Checks if list exists on the particular site based on the list id property.

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

Syntax

public static bool ListExists(this Web web, Guid id)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  Site to be processed - can be root web or sub site

id

  Type: System.Guid
  The id of the list to be checked.

Return Value

Type: bool
True if the list exists

See also

© 2018 Microsoft