DocumentSet.Create method

Creates a new DocumentSet object.

Namespace:  Microsoft.SharePoint.Client.DocumentSet
Assembly:  Microsoft.SharePoint.Client.DocumentManagement (in Microsoft.SharePoint.Client.DocumentManagement.dll)

Syntax

'Declaration
Public Shared Function Create ( _
    context As ClientRuntimeContext, _
    parentFolder As Folder, _
    name As String, _
    ctid As ContentTypeId _
) As ClientResult(Of String)
'Usage
Dim context As ClientRuntimeContext
Dim parentFolder As Folder
Dim name As String
Dim ctid As ContentTypeId
Dim returnValue As ClientResult(Of String)

returnValue = DocumentSet.Create(context, _
    parentFolder, name, ctid)
public static ClientResult<string> Create(
    ClientRuntimeContext context,
    Folder parentFolder,
    string name,
    ContentTypeId ctid
)

Parameters

  • name
    Type: System.String

    The name of the new DocumentSet object.

  • ctid
    Type: Microsoft.SharePoint.Client.ContentTypeId

    The ID of the content type to be used for the new document set to be created. The ID must be a content type that inherits from the base DocumentSet content type.

Return value

Type: Microsoft.SharePoint.Client.ClientResult<String>
The URL to the new DocumentSet object.

See also

Reference

DocumentSet class

DocumentSet members

Microsoft.SharePoint.Client.DocumentSet namespace