views:

28

answers:

2
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);

}

This will add the document set, but value of the hashtalbe is not being accepted.

A: 

you are missing some input parameters for the create method.

http://msdn.microsoft.com/en-us/library/ee588760.aspx

brian brinley
A: 

Even with the SPUser as true, values of the hashtable is not being accepted.

Sean C