sharepoint - Create Document Library using Client Object Model -


just quick question, possible create document library using client object model in sharepoint 2010?

i know can create lists etc. right in saying document library 'special' type of list?

how can specify list create document library?

any appreciated

thanks

yes. can specify templatetype list.

list of templatetypes

using (clientcontext clientctx = new clientcontext(url)) {      listcreationinformation lci = new listcreationinformation();      lci.description = "my own doclib";      lci.title = "library";      lci.templatetype = 101;      list newlib = clientctx.web.lists.add(lci);      clientctx.load(newlib);      clientctx.executequery(); } 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -