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