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

ListExtensions.CreateDocumentLibrary Method

SharePoint Dev Documents|Last Updated: 6/19/2017
|
1 Contributor

Adds a document library to a web. Execute Query is called during this implementation

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

Syntax

public static List CreateDocumentLibrary(this Web web, String listName, Boolean enableVersioning = False, String urlPath = "")

Parameters

web

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

listName

  Type: System.String
  Name of the library

(optional) enableVersioning

  Type: System.Boolean
  Enable versioning on the list

(optional) urlPath

  Type: System.String
  Path of the url

Return Value

Type: List

See also

© 2018 Microsoft