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
- context
Type: Microsoft.SharePoint.Client.ClientRuntimeContext
parentFolder
Type: Microsoft.SharePoint.Client.FolderThe folder in which to create the new DocumentSet object.
name
Type: System.StringThe name of the new DocumentSet object.
ctid
Type: Microsoft.SharePoint.Client.ContentTypeIdThe 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.