Click or drag to resize

IResumableUploadCancelUploadAsync Method (String, IDictionaryString, String, CancellationToken)

IT Hit WebDAV Classes Reference
Cancels upload of the file.

Namespace:  ITHit.WebDAV.Client
Assembly:  ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 6.0.4052-Beta
Syntax
Task CancelUploadAsync(
	string lockToken,
	IDictionary<string, string> headers = null,
	CancellationToken cancellationToken = null
)

Parameters

lockToken
Type: SystemString
Lock token for this file.
headers (Optional)
Type: System.Collections.GenericIDictionaryString, String
Request headers.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

Type: Task

[Missing <returns> documentation for "M:ITHit.WebDAV.Client.IResumableUpload.CancelUploadAsync(System.String,System.Collections.Generic.IDictionary{System.String,System.String},System.Threading.CancellationToken)"]

Exceptions
ExceptionCondition
NotFoundExceptionThis file doesn't exist on the server.
LockedExceptionFile is locked and valid lock token was not specified.
WebDavHttpExceptionServer returned unknown error.
WebDavExceptionUnexpected error occurred.
Remarks

This method submits CANCELUPLOAD request to a file. The server should cancel the file upload and remove temporary files if any.

If your server is based on IT Hit WebDAV Server Engine and the item was automatically checked-out by server Engine when upload started it will be automatically checked-in by server Engine after this call.

See Also