SPFile.SendToOfficialFile 方法 (SPWeb, Uri, Byte[], RecordsRepositoryProperty[], String, Uri, String, SPOfficialFileSubmissionMode, SPFile.CustomFileSubmissionPostProcessing, String)
将文件发送到目标路由器。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function SendToOfficialFile ( _
web As SPWeb, _
objectUrl As Uri, _
rgbFile As Byte(), _
rgofp As RecordsRepositoryProperty(), _
recordSeries As String, _
destinationUrl As Uri, _
submitterEmail As String, _
submissionMode As SPOfficialFileSubmissionMode, _
customProcessor As SPFile.CustomFileSubmissionPostProcessing, _
<OutAttribute> ByRef additionalInformation As String _
) As OfficialFileResult
用法
Dim web As SPWeb
Dim objectUrl As Uri
Dim rgbFile As Byte()
Dim rgofp As RecordsRepositoryProperty()
Dim recordSeries As String
Dim destinationUrl As Uri
Dim submitterEmail As String
Dim submissionMode As SPOfficialFileSubmissionMode
Dim customProcessor As SPFile.CustomFileSubmissionPostProcessing
Dim additionalInformation As String
Dim returnValue As OfficialFileResult
returnValue = SPFile.SendToOfficialFile(web, _
objectUrl, rgbFile, rgofp, recordSeries, _
destinationUrl, submitterEmail, _
submissionMode, customProcessor, _
additionalInformation)
public static OfficialFileResult SendToOfficialFile(
SPWeb web,
Uri objectUrl,
byte[] rgbFile,
RecordsRepositoryProperty[] rgofp,
string recordSeries,
Uri destinationUrl,
string submitterEmail,
SPOfficialFileSubmissionMode submissionMode,
SPFile.CustomFileSubmissionPostProcessing customProcessor,
out string additionalInformation
)
参数
web
类型:Microsoft.SharePoint.SPWeb包含要发送的源对象的站点。
objectUrl
类型:System.Uri正在发送的对象的 Url。
rgbFile
类型:[]在目标上创建该文件的内容。
rgofp
类型:[]在目标上创建该文件的属性。
recordSeries
类型:System.String在目标上创建的文件的内容类型。
destinationUrl
类型:System.Uri到目标路由器的 URL
submitterEmail
类型:System.String提交者电子邮件地址
submissionMode
类型:Microsoft.SharePoint.SPOfficialFileSubmissionMode提交的模式。可能值包括手册、 策略、 工作流和其他。
customProcessor
类型:Microsoft.SharePoint.SPFile.CustomFileSubmissionPostProcessing时已在目标创建了文件提交成功完成后执行的操作。
additionalInformation
类型:System.String当此方法返回时,包含System.String提供在操作中的额外信息。不经初始化就传递此参数。
此字符串是否成功提交,则 < 信息 >< url > {文件的最终位置 Url} 的窗体 XML 字符串 < / url >< / 信息 >
如果提交要求的详细信息,则字符串包含可以提供详细信息以目标传送该文件的 URL。
如果提交被拒绝,则字符串包含被拒绝的原因的信息。
返回值
类型:Microsoft.SharePoint.OfficialFileResult
OfficialFileResult 枚举值。