BufferedReadStream.EnsureBufferedAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
EnsureBufferedAsync(CancellationToken) |
确保缓冲区不为空。 |
EnsureBufferedAsync(Int32, CancellationToken) |
确保可用的缓冲数据量最少。 |
EnsureBufferedAsync(CancellationToken)
- Source:
- BufferedReadStream.cs
- Source:
- BufferedReadStream.cs
- Source:
- BufferedReadStream.cs
确保缓冲区不为空。
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)
参数
- cancellationToken
- CancellationToken
取消标记。
返回
true
如果缓冲区不为空,则返回 ;false
否则返回 。
适用于
EnsureBufferedAsync(Int32, CancellationToken)
- Source:
- BufferedReadStream.cs
- Source:
- BufferedReadStream.cs
- Source:
- BufferedReadStream.cs
确保可用的缓冲数据量最少。
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)
参数
- minCount
- Int32
缓冲数据的最小量。
- cancellationToken
- CancellationToken
取消标记。
返回
true
如果最小缓冲数据量可用,则返回 ;false
否则返回 。