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

FileFolderExtensions.ConvertFolderToDocumentSet Method

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

Converts a folder with the given name as a child of the List RootFolder.

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

Syntax

public static Folder ConvertFolderToDocumentSet(this List list, String folderName)

Parameters

list

  Type: Microsoft.SharePoint.Client.List
  List in which the folder exists

folderName

  Type: System.String
  Folder name to convert

Return Value

Type: Folder
The newly converted Document Set, so that additional operations (such as setting properties) can be done.

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