Share via


DocumentSet.Import Method (Byte , String, SPFolder)

Imports a DocumentSet object.

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

Syntax

'Declaration
Public Shared Function Import ( _
    archiveBytes As Byte(), _
    archiveName As String, _
    parentFolder As SPFolder _
) As DocumentSet
'Usage
Dim archiveBytes As Byte()
Dim archiveName As String
Dim parentFolder As SPFolder
Dim returnValue As DocumentSet

returnValue = DocumentSet.Import(archiveBytes, _
    archiveName, parentFolder)
public static DocumentSet Import(
    byte[] archiveBytes,
    string archiveName,
    SPFolder parentFolder
)

Parameters

  • archiveBytes
    Type: []

    An array that contains a Package representation of the DocumentSet object to be imported.

Return Value

Type: Microsoft.Office.DocumentManagement.DocumentSets.DocumentSet
The new DocumentSet object.

Remarks

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

See Also

Reference

DocumentSet Class

DocumentSet Members

Import Overload

Microsoft.Office.DocumentManagement.DocumentSets Namespace