HashAlgorithm.ComputeHashAsync(Stream, CancellationToken) Método
Definición
public System.Threading.Tasks.Task<byte[]> ComputeHashAsync (System.IO.Stream inputStream, System.Threading.CancellationToken cancellationToken = default);
member this.ComputeHashAsync : System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
Public Function ComputeHashAsync (inputStream As Stream, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Byte())
Parámetros
- inputStream
- Stream
La entrada para la cual se calcula el código hash.The input to compute the hash code for.
- cancellationToken
- CancellationToken
Token para supervisar solicitudes de cancelación.The token to monitor for cancellation requests.
Devoluciones
Tarea que representa la operación asincrónica de cálculo de hash y ajusta el código hash calculado.A task that represents the asynchronous compute hash operation and wraps the computed hash code.