 | JCOBridgeUnmanagedMemoryStreamCopyToAsync(Stream, Int32, CancellationToken) Method |
Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified buffer size and cancellation token.
Namespace: MASES.JCOBridge.C2JBridgeAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntaxpublic override Task CopyToAsync(
Stream destination,
int bufferSize,
CancellationToken cancellationToken
)
Public Overrides Function CopyToAsync (
destination As Stream,
bufferSize As Integer,
cancellationToken As CancellationToken
) As Task
Parameters
- destination Stream
- The stream to which the contents of the current stream will be copied.
- bufferSize Int32
- The size, in bytes, of the buffer. This value must be greater than zero. The default size is 81920.
- cancellationToken CancellationToken
- The token to monitor for cancellation requests. The default value is None.
Return Value
TaskA task that represents the asynchronous copy operation.
Exceptions
See Also