File.FinishUpload 方法

Uploads the last file fragment and commits the file. The current file content is changed when this method completes.

命名空间:  Microsoft.SharePoint.Client
程序集:   Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)

语法

声明
Public Function FinishUpload ( _
    uploadId As Guid, _
    fileOffset As Long, _
    stream As Stream _
) As File
用法
Dim instance As File
Dim uploadId As Guid
Dim fileOffset As Long
Dim stream As Stream
Dim returnValue As File

returnValue = instance.FinishUpload(uploadId, _
    fileOffset, stream)
public File FinishUpload(
    Guid uploadId,
    long fileOffset,
    Stream stream
)

参数

  • uploadId
    类型:System.Guid

    The unique identifier of the upload session.

  • fileOffset
    类型:System.Int64

    The size of the offset into the file where the fragment starts.

  • stream
    类型:System.IO.Stream

    The stream that contains the last fragment to upload.

返回值

类型:Microsoft.SharePoint.Client.File
The current SPFile.

备注

Use the uploadId value that was passed to the StartUpload(Guid, Stream) method that started the upload session.

This method is currently available only on Office 365.

另请参阅

引用

File 类

File 成员

Microsoft.SharePoint.Client 命名空间

Upload large files sample app for SharePoint