DocumentSet.Import method (Byte[], String, SPFolder, SPContentTypeId, Hashtable, SPUser)

Imports a DocumentSet object.

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

Syntax

'Declaration
Public Shared Function Import ( _
    archiveData As Byte(), _
    archiveName As String, _
    parentFolder As SPFolder, _
    docsetContentTypeId As SPContentTypeId, _
    properties As Hashtable, _
    user As SPUser _
) As DocumentSet
'Usage
Dim archiveData As Byte()
Dim archiveName As String
Dim parentFolder As SPFolder
Dim docsetContentTypeId As SPContentTypeId
Dim properties As Hashtable
Dim user As SPUser
Dim returnValue As DocumentSet

returnValue = DocumentSet.Import(archiveData, _
    archiveName, parentFolder, docsetContentTypeId, _
    properties, user)
public static DocumentSet Import(
    byte[] archiveData,
    string archiveName,
    SPFolder parentFolder,
    SPContentTypeId docsetContentTypeId,
    Hashtable properties,
    SPUser user
)

Parameters

  • archiveData
    Type: []

    Byte array of the file to import the DocumentSet from.

  • archiveName
    Type: System.String

    The name of the DocumentSet to import, which will also be the name of this DocumentSet

Return value

Type: Microsoft.Office.DocumentManagement.DocumentSets.DocumentSet
Returns DocumentSet.

Remarks

This function expects a file that was created using the DocumentSet.Export method.

See also

Reference

DocumentSet class

DocumentSet members

Import overload

Microsoft.Office.DocumentManagement.DocumentSets namespace