OfficialFileCore.SubmitFile method (SPWeb, Byte[], RecordsRepositoryProperty[], String, String, String, Boolean, String, String)

Submit 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, _
    <OutAttribute> ByRef strCustomInfo 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 strCustomInfo As String
Dim returnValue As OfficialFileResult

returnValue = OfficialFileCore.SubmitFile(web, _
    fileToSubmit, properties, strRecordSeries, _
    strSourceUrl, strUserName, fViaSMTP, _
    strResultInfo, strCustomInfo)
public static OfficialFileResult SubmitFile(
    SPWeb web,
    byte[] fileToSubmit,
    RecordsRepositoryProperty[] properties,
    string strRecordSeries,
    string strSourceUrl,
    string strUserName,
    bool fViaSMTP,
    out string strResultInfo,
    out string strCustomInfo
)

Parameters

  • fileToSubmit
    Type: []

    Content of the document being submitted.

  • properties
    Type: []

    Metadata of the document being submitted.

  • strRecordSeries
    Type: System.String

    Name of the content type of the document being submitted.

  • strUserName
    Type: System.String

    Login name of the user submitting the document.

  • strResultInfo
    Type: System.String

    Additional information about the result of the submission.

  • strCustomInfo
    Type: System.String

    Result of the processing if the document was placed on Hold after submission.

Return value

Type: Microsoft.SharePoint.OfficialFileResult
An OfficialFileResult enum indicating the result of the submission.

Remarks

See also MS-OFFICIALFILE documentation on MSDN in SharePoint Products and Technologies Protocols.

See also

Reference

OfficialFileCore class

OfficialFileCore members

SubmitFile overload

Microsoft.Office.RecordsManagement.RecordsRepository namespace

OfficialFileResult