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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for