OfficialFileCore.SubmitFile Method (SPWeb, Byte[], RecordsRepositoryProperty , String, String, String, Boolean, 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, bool, out string) instead")> _
Public Shared Function SubmitFile ( _
web As SPWeb, _
fileToSubmit As Byte(), _
properties As RecordsRepositoryProperty(), _
recordSeries As String, _
sourceUrl 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 recordSeries As String
Dim sourceUrl As String
Dim strUserName As String
Dim fViaSMTP As Boolean
Dim strResultInfo As String
Dim returnValue As OfficialFileResult
returnValue = OfficialFileCore.SubmitFile(web, _
fileToSubmit, properties, recordSeries, _
sourceUrl, strUserName, fViaSMTP, _
strResultInfo)
[ObsoleteAttribute("Use SubmitFile(SPWeb, byte[], Microsoft.SharePoint.RecordsRepositoryProperty[], string, string ,string, bool, out string) instead")]
public static OfficialFileResult SubmitFile(
SPWeb web,
byte[] fileToSubmit,
RecordsRepositoryProperty[] properties,
string recordSeries,
string sourceUrl,
string strUserName,
bool fViaSMTP,
out string strResultInfo
)
Parameters
web
Type: Microsoft.SharePoint.SPWebThe Web site to store the document.
fileToSubmit
Type: []The document being submitted.
properties
Type: []A string that represents the document properties specified by the document submitter.
- recordSeries
Type: System.String
- sourceUrl
Type: System.String
strUserName
Type: System.StringUser name of the submitter of the file.
fViaSMTP
Type: System.Booleantrue if the file is being sent through SMTP; otherwise false.
strResultInfo
Type: System.StringA string that contains the results of this operation.
Return Value
Type: Microsoft.SharePoint.OfficialFileResult
See Also
Reference
Microsoft.Office.RecordsManagement.RecordsRepository Namespace