UnmanagedMemoryStream.FlushAsync(CancellationToken) Método
Definição
Substitui o método FlushAsync(CancellationToken) para que a operação seja cancelada se especificado, mas nenhuma outra ação seja executada.Overrides the FlushAsync(CancellationToken) method so that the operation is cancelled if specified, but no other action is performed.
public:
override System::Threading::Tasks::Task ^ FlushAsync(System::Threading::CancellationToken cancellationToken);
public override System.Threading.Tasks.Task FlushAsync (System.Threading.CancellationToken cancellationToken);
[System.Runtime.InteropServices.ComVisible(false)]
public override System.Threading.Tasks.Task FlushAsync (System.Threading.CancellationToken cancellationToken);
override this.FlushAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
[<System.Runtime.InteropServices.ComVisible(false)>]
override this.FlushAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function FlushAsync (cancellationToken As CancellationToken) As Task
Parâmetros
- cancellationToken
- CancellationToken
O token a se monitorar para solicitações de cancelamento.The token to monitor for cancellation requests. O valor padrão é None.The default value is None.
Retornos
Uma tarefa que representa a operação de liberação assíncrona.A task that represents the asynchronous flush operation.
- Atributos
Comentários
Se a operação não for cancelada, o UnmanagedMemoryStream chamará o Flush método, o que significa que nenhuma ação foi executada.If the operation isn't cancelled, the UnmanagedMemoryStream calls the Flush method, which means that no action performed.