EcmDocumentRouter.SaveFileToFinalLocation(EcmDocumentRoutingWeb, SPFolder, Stream, String, String, Hashtable, SPUser, Boolean, String) EcmDocumentRouter.SaveFileToFinalLocation(EcmDocumentRoutingWeb, SPFolder, Stream, String, String, Hashtable, SPUser, Boolean, String) EcmDocumentRouter.SaveFileToFinalLocation(EcmDocumentRoutingWeb, SPFolder, Stream, String, String, Hashtable, SPUser, Boolean, String) Method

Definition

Save file content and properties to a location specified by targetFolder parameter.

public:
 static Microsoft::SharePoint::SPFile ^ SaveFileToFinalLocation(Microsoft::Office::RecordsManagement::RecordsRepository::EcmDocumentRoutingWeb ^ edrWeb, Microsoft::SharePoint::SPFolder ^ targetFolder, System::IO::Stream ^ fileStream, System::String ^ fileName, System::String ^ originalFilePath, System::Collections::Hashtable ^ fileProperties, Microsoft::SharePoint::SPUser ^ fileAuthor, bool overrideVersioning, System::String ^ checkInComment);
public static Microsoft.SharePoint.SPFile SaveFileToFinalLocation (Microsoft.Office.RecordsManagement.RecordsRepository.EcmDocumentRoutingWeb edrWeb, Microsoft.SharePoint.SPFolder targetFolder, System.IO.Stream fileStream, string fileName, string originalFilePath, System.Collections.Hashtable fileProperties, Microsoft.SharePoint.SPUser fileAuthor, bool overrideVersioning, string checkInComment);
Public Shared Function SaveFileToFinalLocation (edrWeb As EcmDocumentRoutingWeb, targetFolder As SPFolder, fileStream As Stream, fileName As String, originalFilePath As String, fileProperties As Hashtable, fileAuthor As SPUser, overrideVersioning As Boolean, checkInComment As String) As SPFile
Parameters
edrWeb
EcmDocumentRoutingWeb EcmDocumentRoutingWeb EcmDocumentRoutingWeb

The Document Routing Web where the file is to be saved.

targetFolder
SPFolder SPFolder SPFolder

The SPFolder to which the file is to be saved. If saving directly to a list, provide the RootFolder property value.

fileStream
Stream Stream Stream

Content of the file in a stream.

fileName
String String String

Name of the file to be saved.

originalFilePath
String String String

URL or path of the file from which the content and properties of the new file were taken.

fileProperties
Hashtable Hashtable Hashtable

Properties of the file. If a field of the same name as a key in the hashtable exists on the content type of the new file, the field will be populated with the value in the hashtable.

fileAuthor
SPUser SPUser SPUser

User who created this file.

overrideVersioning
Boolean Boolean Boolean

Always create a new file regardless of the router name conflict settings.

checkInComment
String String String

A comment about the check in.

Returns

Applies to