Export (0) Print
Expand All

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
)

Parameters

parentFolder
Type: Microsoft.SharePoint.SPFolder

The folder that contains the DocumentSet object.

name
Type: System.String

The name of the new DocumentSet object.

ctid
Type: Microsoft.SharePoint.SPContentTypeId

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

properties
Type: System.Collections.Hashtable

The properties of the new DocumentSet object.

bProvisionDefaultContent
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.

Show:
© 2014 Microsoft