TextWriter.FlushAsync Método
Definição
Limpa, de maneira assíncrona, todos os buffers do gravador atual e faz com que todos os dados armazenados em buffer sejam gravados no dispositivo subjacente.Asynchronously clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
public:
virtual System::Threading::Tasks::Task ^ FlushAsync();
public virtual System.Threading.Tasks.Task FlushAsync ();
[System.Runtime.InteropServices.ComVisible(false)]
public virtual System.Threading.Tasks.Task FlushAsync ();
abstract member FlushAsync : unit -> System.Threading.Tasks.Task
override this.FlushAsync : unit -> System.Threading.Tasks.Task
[<System.Runtime.InteropServices.ComVisible(false)>]
abstract member FlushAsync : unit -> System.Threading.Tasks.Task
override this.FlushAsync : unit -> System.Threading.Tasks.Task
Public Overridable Function FlushAsync () As Task
Retornos
Uma tarefa que representa a operação de liberação assíncrona.A task that represents the asynchronous flush operation.
- Atributos
Exceções
O gravador de texto é descartado.The text writer is disposed.
O gravador está sendo usado no momento por uma operação de gravação anterior.The writer is currently in use by a previous write operation.