다음을 통해 공유


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.Stream

    The file stream of the file from which to import the DocumentSet, which will be the name of that DocumentSet when it is created

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)

See Also

Reference

DocumentSet Class

DocumentSet Members

Import Overload

Microsoft.Office.DocumentManagement.DocumentSets Namespace