共用方式為


Decompressor 類別

定義

解壓縮器會採用壓縮的壓縮資料流程,並解壓縮它。

public ref class Decompressor sealed : IClosable
/// [Windows.Foundation.Metadata.Activatable(Windows.Storage.Compression.IDecompressorFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class Decompressor final : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Storage.Compression.IDecompressorFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class Decompressor final : IClosable
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Storage.Compression.IDecompressorFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class Decompressor : System.IDisposable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Storage.Compression.IDecompressorFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class Decompressor : System.IDisposable
function Decompressor(underlyingStream)
Public NotInheritable Class Decompressor
Implements IDisposable
繼承
Object Platform::Object IInspectable Decompressor
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

建構函式

Decompressor(IInputStream)

這個方法會建立解壓縮程式的實例。

方法

Close()

關閉解壓縮程式物件,並同步捨棄緩衝區中的任何資訊。 除非已使用 Decompressor.Detach 方法從 物件卸離資料流程,否則這也會關閉基礎資料流程。 關閉物件上的後續呼叫會失敗,但 除外。

DetachStream()

中斷連結基礎資料流程與 Decompressor 物件,以便使用 Decompressor.Close 方法關閉物件,而不需同時關閉基礎資料流程。

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

ReadAsync(IBuffer, UInt32, InputStreamOptions)

以非同步方式從壓縮資料流程讀取。

適用於

另請參閱