System.IO.Tests.ThrowsExceptionFromAsyncOperationsStream.ReadAsync C# (CSharp) Méthode

ReadAsync() public méthode

public ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken System.Threading.CancellationToken
Résultat Task
        public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
        {
            throw new InvalidOperationException("Exception from ReadAsync");
        }
ThrowsExceptionFromAsyncOperationsStream