DocumentSet.Create Method (SPFolder, String, SPContentTypeId, Hashtable, Boolean)

Creates a new DocumentSet object.

Namespace:  Microsoft.Office.DocumentManagement.DocumentSets
Assembly:  Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)

public static DocumentSet Create(
	SPFolder parentFolder,
	string name,
	SPContentTypeId ctid,
	Hashtable properties,
	bool bProvisionDefaultContent


Type: Microsoft.SharePoint.SPFolder

The folder that contains the DocumentSet object.

Type: System.String

The name of the new DocumentSet object.

Type: Microsoft.SharePoint.SPContentTypeId

The content type identifier on which to base the new DocumentSet object.

Type: System.Collections.Hashtable

The properties of the new DocumentSet object.

Type: System.Boolean

true to provision the default content for the DocumentSet object; otherwise, false.

This version of the Create method always provisions default contents for the content type , if there are any. It tries to assign any values found in the hashtable to the appropriate fields in the new DocumentSet object. The values are copied to the new object only if they are valid fields in the content type. Values for unknown fields are ignored.