DocumentSet.Import Method (Stream, String, SPFolder, SPContentTypeId, Hashtable, SPUser)
Imports a [T:Microsoft.Office.DocumentManagement.DocumentSets.DocumentSet.Import(System.IO.Stream,System.String,Microsoft.SharePoint.SPFolder,Microsoft.SharePoint.SPContentTypeId,System.Collections.Hashtable,Microsoft.SharePoint.SPSite)] object.
Namespace: Microsoft.Office.DocumentManagement.DocumentSets
Assembly: Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)
Syntax
'Declaration
Public Shared Function Import ( _
archiveStream As Stream, _
archiveName As String, _
parentFolder As SPFolder, _
docsetContentTypeId As SPContentTypeId, _
properties As Hashtable, _
user As SPUser _
) As DocumentSet
'Usage
Dim archiveStream As Stream
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(archiveStream, _
archiveName, parentFolder, docsetContentTypeId, _
properties, user)
public static DocumentSet Import(
Stream archiveStream,
string archiveName,
SPFolder parentFolder,
SPContentTypeId docsetContentTypeId,
Hashtable properties,
SPUser user
)
Parameters
archiveStream
Type: System.IO.StreamThe file stream of the file from which to import the DocumentSet, which will be the name of that DocumentSet when it is created
archiveName
Type: System.StringName of the DocumentSet object to import
parentFolder
Type: Microsoft.SharePoint.SPFolderThe SPFolder to which the DocumentSet is to be imported
docsetContentTypeId
Type: Microsoft.SharePoint.SPContentTypeIdThe SPContentTypeId object to use for the import
properties
Type: System.Collections.HashtableA collection of properties to be set on the [DocumentSet] after the import
user
Type: Microsoft.SharePoint.SPUserThe SPUser object to set as the owner and author of the imported DocumentSet
Return Value
Type: Microsoft.Office.DocumentManagement.DocumentSets.DocumentSet
Returns DocumentSetThe DocumentSet object resulting from the M:Microsoft.Office.DocumentManagement.DocumentSets.DocumentSet.Import(System.IO.Stream,System.String,Microsoft.SharePoint.SPFolder,Microsoft.SharePoint.SPContentTypeId,System.Collections.Hashtable,Microsoft.SharePoint.SPUser)