JSStreamReference.IJSStreamReference.OpenReadStreamAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
System.Threading.Tasks.ValueTask<System.IO.Stream> IJSStreamReference.OpenReadStreamAsync (long maxAllowedSize, System.Threading.CancellationToken cancellationToken);
abstract member Microsoft.JSInterop.IJSStreamReference.OpenReadStreamAsync : int64 * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.IO.Stream>
override this.Microsoft.JSInterop.IJSStreamReference.OpenReadStreamAsync : int64 * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.IO.Stream>
Function OpenReadStreamAsync (maxAllowedSize As Long, cancellationToken As CancellationToken) As ValueTask(Of Stream) Implements IJSStreamReference.OpenReadStreamAsync
Parameters
- maxAllowedSize
- Int64
Maximum number of bytes permitted to be read from JavaScript.
- cancellationToken
- CancellationToken
CancellationToken for cancelling read.
Returns
Stream which can provide data associated with the current data reference.