IRouter.OnSubmitFile Method
NOTE: This API is now obsolete.
Office SharePoint Server 2007 calls this method when a user submits a document with a record series type associated with this custom router to a records repository site.
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
[ObsoleteAttribute("Use Microsoft.Office.RecordsManagement.RecordsRepository.ICustomRouter instead")] RouterResult OnSubmitFile( string recordSeries, string sourceUrl, string userName, ref byte[] fileToSubmit, ref RecordsRepositoryProperty[] properties, ref SPList destination, ref string resultDetails )
Parameters
- recordSeries
- Type: System.String
A string that represents the record routing type specified for the submitted document.
- sourceUrl
- Type: System.String
A string that represents the URL of the document being submitted.
- userName
- Type: System.String
A string that represents the user login name of the document submitter.
- fileToSubmit
- Type: System.Byte[]%
The document being submitted.
- properties
- Type: Microsoft.Office.RecordsManagement.RecordsRepository.RecordsRepositoryProperty[]%
A string that represents the document properties specified by the document submitter.
- destination
- Type: Microsoft.SharePoint.SPList%
A string that represents the list in the record repository to which the document is to be submitted, based on the value specified for the recordSeries parameter.
- resultDetails
- Type: System.String%
A string that represents any additional information from the router regarding its processing of the document.
Return Value
Type: Microsoft.Office.RecordsManagement.RecordsRepository.RouterResultA RouterResult enumeration value specifying the result of the router processing:
SuccessContinueProcessing The router has successfully completed its processing, and the record repository continues with its processing of the document.
SuccessCancelFurtherProcessing The router has successfully completed its processing, but the record repository discontinues its processing of the document. The record repository returns a success value to the calling application, as well as the contents of the resultData parameter.
RejectFile The router did not complete its processing successfully. The record repository returns an error to the calling application, as well as the contents of the resultData parameter.
Each custom router must implement the IRouter interface. When a file is submitted to the records repository, Office SharePoint Server 2007 calls the appropriate custom router, if there is one, using the OnSubmitFile method.
The fileToSubmit, properties, destination, and resultData parameters are passed by reference, so that the custom router may change these values as necessary. Therefore, the custom router has the ability to edit the submitted document and its associated metadata, change the storage destination of the document, and communicate details of its processing to the records repository.