Udostępnij za pośrednictwem


BufferedReadStream.EnsureBufferedAsync Metoda

Definicja

Przeciążenia

EnsureBufferedAsync(CancellationToken)

Zapewnia, że bufor nie jest pusty.

EnsureBufferedAsync(Int32, CancellationToken)

Zapewnia dostępność minimalnej ilości buforowanych danych.

EnsureBufferedAsync(CancellationToken)

Źródło:
BufferedReadStream.cs
Źródło:
BufferedReadStream.cs
Źródło:
BufferedReadStream.cs

Zapewnia, że bufor nie jest pusty.

public:
 System::Threading::Tasks::Task<bool> ^ EnsureBufferedAsync(System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<bool> EnsureBufferedAsync (System.Threading.CancellationToken cancellationToken);
member this.EnsureBufferedAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function EnsureBufferedAsync (cancellationToken As CancellationToken) As Task(Of Boolean)

Parametry

cancellationToken
CancellationToken

Token anulowania.

Zwraca

Zwraca wartość true , jeśli bufor nie jest pusty; false w przeciwnym razie.

Dotyczy

EnsureBufferedAsync(Int32, CancellationToken)

Źródło:
BufferedReadStream.cs
Źródło:
BufferedReadStream.cs
Źródło:
BufferedReadStream.cs

Zapewnia dostępność minimalnej ilości buforowanych danych.

public:
 System::Threading::Tasks::Task<bool> ^ EnsureBufferedAsync(int minCount, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<bool> EnsureBufferedAsync (int minCount, System.Threading.CancellationToken cancellationToken);
member this.EnsureBufferedAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function EnsureBufferedAsync (minCount As Integer, cancellationToken As CancellationToken) As Task(Of Boolean)

Parametry

minCount
Int32

Minimalna ilość buforowanych danych.

cancellationToken
CancellationToken

Token anulowania.

Zwraca

Zwraca true wartość , jeśli jest dostępna minimalna ilość buforowanych danych; false w przeciwnym razie.

Dotyczy