Created
April 15, 2015 13:44
-
-
Save MaxMelcher/27ff455f3fd7f34c3791 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (var ctx = new ClientContext("https://intranet.demo.com/sites/test")) | |
{ | |
var web = ctx.Web; | |
var list = web.Lists.GetByTitle("Documents"); | |
ListItemCreationInformation lici = new ListItemCreationInformation | |
{ | |
UnderlyingObjectType = FileSystemObjectType.Folder, | |
LeafName = "TEST-CSOM" | |
}; | |
var item = list.AddItem(lici); | |
item.Update(); | |
web.Context.Load(item); | |
web.Context.ExecuteQuery(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment