IJSStreamReference.OpenReadStreamAsync(Int64, CancellationToken) 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.
public System.Threading.Tasks.ValueTask<System.IO.Stream> OpenReadStreamAsync (long maxAllowedSize = 512000, System.Threading.CancellationToken cancellationToken = default);
abstract member OpenReadStreamAsync : int64 * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.IO.Stream>
Public Function OpenReadStreamAsync (Optional maxAllowedSize As Long = 512000, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Stream)
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.