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

FileFolderExtensions.FolderExists Method

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

Checks if the folder exists at the top level of the web site.

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

Syntax

public static bool FolderExists(this Web web, String folderName)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  Web to check for the named folder

folderName

  Type: System.String
  Folder name to retrieve

Return Value

Type: bool
true if the folder exists; false otherwise

Remarks

Note that this only checks one level of folder (the Folders collection) and cannot accept a name with path characters.

See also

© 2018 Microsoft