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 ( _
archiveData As Byte(), _
archiveName As String, _
parentFolder As SPFolder _
) As DocumentSet
'Usage
Dim archiveData As Byte()
Dim archiveName As String
Dim parentFolder As SPFolder
Dim returnValue As DocumentSet
returnValue = DocumentSet.Import(archiveData, _
archiveName, parentFolder)
public static DocumentSet Import(
byte[] archiveData,
string archiveName,
SPFolder parentFolder
)
Parameters
archiveData
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 by using the Export() method.