FileBufferingWriteStream 類別

定義

Stream,會緩衝要寫入磁片的內容。 使用 DrainBufferAsync(Stream, CancellationToken) 將緩衝的內容寫入目標 Stream

public ref class FileBufferingWriteStream sealed : System::IO::Stream
public sealed class FileBufferingWriteStream : System.IO.Stream
type FileBufferingWriteStream = class
    inherit Stream
Public NotInheritable Class FileBufferingWriteStream
Inherits Stream
繼承
FileBufferingWriteStream

建構函式

FileBufferingWriteStream(Int32, Nullable<Int64>, Func<String>)

初始化 FileBufferingWriteStream 的新執行個體。

屬性

CanRead

Stream,會緩衝要寫入磁片的內容。 使用 DrainBufferAsync(Stream, CancellationToken) 將緩衝的內容寫入目標 Stream

CanSeek

Stream,會緩衝要寫入磁片的內容。 使用 DrainBufferAsync(Stream, CancellationToken) 將緩衝的內容寫入目標 Stream

CanWrite

Stream,會緩衝要寫入磁片的內容。 使用 DrainBufferAsync(Stream, CancellationToken) 將緩衝的內容寫入目標 Stream

Length

Stream,會緩衝要寫入磁片的內容。 使用 DrainBufferAsync(Stream, CancellationToken) 將緩衝的內容寫入目標 Stream

MemoryThreshold

切換至磁片上的檔案之前,要配置的記憶體數量上限,以位元組為單位。

Position

Stream,會緩衝要寫入磁片的內容。 使用 DrainBufferAsync(Stream, CancellationToken) 將緩衝的內容寫入目標 Stream

方法

DisposeAsync()

Stream,會緩衝要寫入磁片的內容。 使用 DrainBufferAsync(Stream, CancellationToken) 將緩衝的內容寫入目標 Stream

DrainBufferAsync(PipeWriter, CancellationToken)

清空緩衝的內容至 destination

DrainBufferAsync(Stream, CancellationToken)

清空緩衝的內容至 destination

Flush()

Stream,會緩衝要寫入磁片的內容。 使用 DrainBufferAsync(Stream, CancellationToken) 將緩衝的內容寫入目標 Stream

FlushAsync(CancellationToken)

Stream,會緩衝要寫入磁片的內容。 使用 DrainBufferAsync(Stream, CancellationToken) 將緩衝的內容寫入目標 Stream

Read(Byte[], Int32, Int32)

Stream,會緩衝要寫入磁片的內容。 使用 DrainBufferAsync(Stream, CancellationToken) 將緩衝的內容寫入目標 Stream

ReadAsync(Byte[], Int32, Int32, CancellationToken)

Stream,會緩衝要寫入磁片的內容。 使用 DrainBufferAsync(Stream, CancellationToken) 將緩衝的內容寫入目標 Stream

ReadAsync(Memory<Byte>, CancellationToken)

Stream,會緩衝要寫入磁片的內容。 使用 DrainBufferAsync(Stream, CancellationToken) 將緩衝的內容寫入目標 Stream

Seek(Int64, SeekOrigin)

Stream,會緩衝要寫入磁片的內容。 使用 DrainBufferAsync(Stream, CancellationToken) 將緩衝的內容寫入目標 Stream

SetLength(Int64)

Stream,會緩衝要寫入磁片的內容。 使用 DrainBufferAsync(Stream, CancellationToken) 將緩衝的內容寫入目標 Stream

Write(Byte[], Int32, Int32)

Stream,會緩衝要寫入磁片的內容。 使用 DrainBufferAsync(Stream, CancellationToken) 將緩衝的內容寫入目標 Stream

WriteAsync(Byte[], Int32, Int32, CancellationToken)

Stream,會緩衝要寫入磁片的內容。 使用 DrainBufferAsync(Stream, CancellationToken) 將緩衝的內容寫入目標 Stream

WriteAsync(ReadOnlyMemory<Byte>, CancellationToken)

Stream,會緩衝要寫入磁片的內容。 使用 DrainBufferAsync(Stream, CancellationToken) 將緩衝的內容寫入目標 Stream

適用於