How to manage the metadata of document sets using C#+CSOM. Any sample code is appreciated.
below is the code i tried for creating the document set
.
....
.....
ContentType targetDocumentSetContentType = result.FirstOrDefault();
ListItemCreationInformation newItemInfo = new
ListItemCreationInformation();
newItemInfo.UnderlyingObjectType =
FileSystemObjectType.Folder;
newItemInfo.LeafName = "Document Set1";
//newItemInfo.FolderUrl = list.RootFolder.ServerRelativeUrl.ToString();
ListItem newListItem = list.AddItem(newItemInfo);
newListItem("ContentTypeId") =
targetDocumentSetContentType.Id.ToString();
newListItem.Update();
list.Update();
clientContext.ExecuteQuery();
the above code for creation of document set, but i am stuck at how to modify the properties.