OfficialFileCore.SubmitFile Method (SPWeb, Byte[], RecordsRepositoryProperty , String, String, String, Boolean, String)
Submits a document (content and metadata) to a content organizer-enabled site.
Namespace: Microsoft.Office.RecordsManagement.RecordsRepository
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
Syntax
'Declaration
Public Shared Function SubmitFile ( _
web As SPWeb, _
fileToSubmit As Byte(), _
properties As RecordsRepositoryProperty(), _
strRecordSeries As String, _
strSourceUrl As String, _
strUserName As String, _
fViaSMTP As Boolean, _
<OutAttribute> ByRef strResultInfo As String _
) As OfficialFileResult
'Usage
Dim web As SPWeb
Dim fileToSubmit As Byte()
Dim properties As RecordsRepositoryProperty()
Dim strRecordSeries As String
Dim strSourceUrl As String
Dim strUserName As String
Dim fViaSMTP As Boolean
Dim strResultInfo As String
Dim returnValue As OfficialFileResult
returnValue = OfficialFileCore.SubmitFile(web, _
fileToSubmit, properties, strRecordSeries, _
strSourceUrl, strUserName, fViaSMTP, _
strResultInfo)
public static OfficialFileResult SubmitFile(
SPWeb web,
byte[] fileToSubmit,
RecordsRepositoryProperty[] properties,
string strRecordSeries,
string strSourceUrl,
string strUserName,
bool fViaSMTP,
out string strResultInfo
)
Parameters
web
Type: Microsoft.SharePoint.SPWebAn SPWeb object representing the site to which the document is being submitted.
fileToSubmit
Type: []Content of the document being submitted.
properties
Type: []Metadata of the document being submitted.
strRecordSeries
Type: System.StringName of the content type of the document being submitted.
strSourceUrl
Type: System.StringOriginal URL of the document.
strUserName
Type: System.StringLogin name of the user submitting the document.
fViaSMTP
Type: System.BooleanWhether this is an e-mail submission.
strResultInfo
Type: System.StringAdditional information about the result of the submission.
Return Value
Type: Microsoft.SharePoint.OfficialFileResult
An OfficialFileResult enumeration indicating the result of the submission.
Remarks
See also MS-OFFICIALFILE documentation on MSDN in SharePoint Products and Technologies Protocols for more information.
See Also
Reference
Microsoft.Office.RecordsManagement.RecordsRepository Namespace