Поделиться через


Метод File.ContinueUpload

Continues the chunk upload session with an additional fragment. The current file content is not changed.

Пространство имен:  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 ContinueUpload ( _
    uploadId As Guid, _
    fileOffset As Long, _
    stream As Stream _
) As ClientResult(Of Long)
'Применение
Dim instance As File
Dim uploadId As Guid
Dim fileOffset As Long
Dim stream As Stream
Dim returnValue As ClientResult(Of Long)

returnValue = instance.ContinueUpload(uploadId, _
    fileOffset, stream)
public ClientResult<long> ContinueUpload(
    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 fragment to upload.

Возвращаемое значение

Тип: Microsoft.SharePoint.Client.ClientResult<Int64>
The size of the total uploaded data in bytes.

Замечания

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