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


Метод File.CancelUpload

Stops the chunk upload session without saving the uploaded data. If the file doesn’t already exist in the library, the partially updated file will be deleted. Use this in response to user action (as in a request to cancel an upload) or an error or exception.

Пространство имен:  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 Sub CancelUpload ( _
    uploadId As Guid _
)
'Применение
Dim instance As File
Dim uploadId As Guid

instance.CancelUpload(uploadId)
public void CancelUpload(
    Guid uploadId
)

Параметры

  • uploadId
    Тип: System.Guid

    The unique identifier of the upload session.

Замечания

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