var clientContext = new ClientContext("http://server2010/sub"); var web = clientContext.Web; var list = web.Lists.GetByTitle("SuperContacts"); var lci = new ListItemCreationInformation(); lci.FolderUrl = "/sub/Lists/SuperContacts/TestFolder2"; lci.UnderlyingObjectType = FileSystemObjectType.File; var item = list.AddItem(lci); item["Title"] = "Test item 2"; item.Update(); clientContext.Load(item); clientContext.ExecuteQuery();
У меня сложилось впечатление что ListItemCreationInformation.LeafName на процесс создание item'ов не оказывает.
Комментариев нет:
Отправка комментария