StreamWriter.DisposeAsync 方法

定義

以非同步方式將任何緩衝資料寫入基礎資料流,並釋出 StreamWriter 使用的非受控資源。Asynchronously writes any buffered data to the underlying stream and releases the unmanaged resources used by the StreamWriter.

public:
 override System::Threading::Tasks::ValueTask DisposeAsync();
public override System.Threading.Tasks.ValueTask DisposeAsync ();
override this.DisposeAsync : unit -> System.Threading.Tasks.ValueTask
Public Overrides Function DisposeAsync () As ValueTask

傳回

ValueTask

代表非同步處署作業的工作。A task that represents the asynchronous dispose operation.

適用於