Hashtable docProps = new Hashtable();
docProps.Add("Field1", myvalue);
docProps.Add("Field2", "slsl");
docProps.Add("Field3", "wwowowo");
try
{
DocumentSet ds = DocumentSet.Create(list.RootFolder, "mydocumentset", list.ContentTypes["CustomDocumentSet"].Id, docProps);
}
这将添加文档集,但不接受 hashtalbe 的值。