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.
archiveName
Type: System.StringThe name of the DocumentSet object to be created.
parentFolder
Type: Microsoft.SharePoint.SPFolderThe name of the folder in which to place the DocumentSet object.
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.