Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

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

web
Type: Microsoft.SharePoint.SPWeb

An 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.String

Name of the content type of the document being submitted.

strSourceUrl
Type: System.String

Original url of the document.

strUserName
Type: System.String

Login name of the user submitting the document.

fViaSMTP
Type: System.Boolean

Whether this is an e-mail submission.

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.

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

Show:
© 2015 Microsoft