Task FlushAsync (System.Threading.CancellationToken cancellationToken); 參數 cancellationToken CancellationToken 用來監視是否有取消要求的語彙基元。 預設值是 None。 傳回 Task 表示非同步排清作業的工作。 例外狀況 OperationCanceledException 取消令牌已取消。 此例外狀況會儲存在傳回的工作中。 備註 如果作業在...
GZipStream.FlushAsync(CancellationToken) 方法参考 反馈 定义命名空间: System.IO.Compression 程序集: System.IO.Compression.dll 异步清理此 GZip 流的所有缓冲区,使所有缓冲数据写入基础设备,并监控取消请求。 C# 复制 public override System.Threading.Tasks.Task FlushAsync (System.Threading.CancellationToken ...
FlushAsync(CancellationToken) 方法 参考 反馈 定义 命名空间: System.IO.Compression 程序集: System.IO.Compression.dll 异步清理此 GZip 流的所有缓冲区,使所有缓冲数据写入基础设备,并监控取消请求。 C# 复制 public override System.Threading.Tasks.Task FlushAsync (System.Threading.CancellationToken ...
Flush 将当前 GZipStream 对象的内部缓冲区的内容刷新到基础流。 (重写 Stream..::.Flush()()()。) GetHashCode 用作特定类型的哈希函数。 (继承自 Object。) GetLifetimeService 检索控制此实例的生存期策略的当前生存期服务对象。 (继承自 MarshalByRefObject。) InitializeLifetimeService 获取控制此实例的生存期...
Flush 将当前 GZipStream 对象的内部缓冲区的内容刷新到基础流。 (重写 Stream..::.Flush()()()。) GetHashCode 用作特定类型的哈希函数。 (继承自 Object。) GetLifetimeService 检索控制此实例的生存期策略的当前生存期服务对象。 (继承自 MarshalByRefObject。) ...
Flush() 刷新内部缓冲区。 FlushAsync() 异步清除此流的所有缓冲区并导致所有缓冲数据都写入基础设备中。 (继承自 Stream) FlushAsync(CancellationToken) 异步清理此 GZip 流的所有缓冲区,使所有缓冲数据写入基础设备,并监控取消请求。 GetHashCode() 作为默认哈希函数。 (继承自 Object) GetLifetimeService(...
Flush() Vyprázdní vnitřní vyrovnávací paměti. FlushAsync() Asynchronně vymaže všechny vyrovnávací paměti pro tento datový proud a způsobí zápis všech dat uložených do vyrovnávací paměti do podkladového zařízení. (Zděděno od Stream) FlushAsync(Ca...
destinationStream.Flush() Catch ex As ApplicationException Return False Finally If sourceStream IsNot Nothing Then sourceStream.Close() If decompressedStream IsNot Nothing Then decompressedStream.Close() If destinationStream IsNot Nothing Then destinationStream.Close() ...
destination.Flush(); destination.Position = 0; DeSerializeFiles(destination, dirPath); } } } private static void DeSerializeFiles(Stream s, string dirPath) { BinaryFormatter b = new BinaryFormatter(); ArrayList list = (ArrayList)b.Deserialize(s); foreach (SerializeFileInfo f in list) { string...
destination.Flush(); destination.Position = 0; DeSerializeFiles(destination, dirPath); } } } private static void DeSerializeFiles(Stream s, string dirPath) { BinaryFormatter b = new BinaryFormatter(); ArrayList list = (ArrayList)b.Deserialize(s); ...