Partilhar via


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

NOTE: This API is now obsolete.

Submits a file to the records repository.

Namespace:  Microsoft.Office.RecordsManagement.RecordsRepository
Assembly:  Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use SubmitFile(SPWeb, byte[], Microsoft.SharePoint.RecordsRepositoryProperty[], string, string ,string, out string) instead")> _
Public Shared Function SubmitFile ( _
    web As SPWeb, _
    fileToSubmit As Byte(), _
    properties As RecordsRepositoryProperty(), _
    recordSeries As String, _
    sourceUrl As String, _
    <OutAttribute> ByRef strResultInfo As String _
) As OfficialFileResult
'Usage
Dim web As SPWeb
Dim fileToSubmit As Byte()
Dim properties As RecordsRepositoryProperty()
Dim recordSeries As String
Dim sourceUrl As String
Dim strResultInfo As String
Dim returnValue As OfficialFileResult

returnValue = OfficialFileCore.SubmitFile(web, _
    fileToSubmit, properties, recordSeries, _
    sourceUrl, strResultInfo)
[ObsoleteAttribute("Use SubmitFile(SPWeb, byte[], Microsoft.SharePoint.RecordsRepositoryProperty[], string, string ,string, out string) instead")]
public static OfficialFileResult SubmitFile(
    SPWeb web,
    byte[] fileToSubmit,
    RecordsRepositoryProperty[] properties,
    string recordSeries,
    string sourceUrl,
    out string strResultInfo
)

Parameters

  • fileToSubmit
    Type: []

    The document being submitted.

  • properties
    Type: []

    A string that represents the document properties specified by the document submitter.

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

  • strResultInfo
    Type: System.String

    A string that contains the results of this operation.

Return Value

Type: Microsoft.SharePoint.OfficialFileResult

See Also

Reference

OfficialFileCore Class

OfficialFileCore Members

SubmitFile Overload

Microsoft.Office.RecordsManagement.RecordsRepository Namespace