InteractionFile Methods
ClassMethods2 members
Represents a file selected by the user for an
InputType.File input. Opens a read-only stream for the file content.
public sealed class InteractionFile{ public Stream OpenRead() { // ... }}Returns
StreamA IO.Stream for reading the file. Reads all bytes of the file asynchronously.
public sealed class InteractionFile{ public Task<byte[]> ReadAllBytesAsync( CancellationToken cancellationToken = default(CancellationToken)) { // ... }}Parameters
cancellationTokenCancellationTokenoptionalA token to monitor for cancellation requests.Returns
Task<byte[]>A byte array containing the file content.