| ChunkedUploadSourceStashNextChunkAsync(Int32, CancellationToken) Method |
This is preliminary documentation and is subject to change.
Stash the next chunk in the stream.
Namespace: WikiClientLibrary.FilesAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public Task<UploadResult> StashNextChunkAsync(
int chunkSize,
CancellationToken cancellationToken
)
Public Function StashNextChunkAsync (
chunkSize As Integer,
cancellationToken As CancellationToken
) As Task(Of UploadResult)
Dim instance As ChunkedUploadSource
Dim chunkSize As Integer
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of UploadResult)
returnValue = instance.StashNextChunkAsync(chunkSize,
cancellationToken)
public:
Task<UploadResult^>^ StashNextChunkAsync(
int chunkSize,
CancellationToken cancellationToken
)
member StashNextChunkAsync :
chunkSize : int *
cancellationToken : CancellationToken -> Task<UploadResult>
Parameters
- chunkSize Int32
- The maximum size of the next chunk.
- cancellationToken CancellationToken
- The token used to cancel the operation.
Return Value
TaskUploadResulttrue if a chunk has been uploaded;
false if all the chunks has already been uploaded.
Exceptions See Also