OutputStreamOverStream クラス

定義

IStream 基本実装のWindows ランタイム出力ストリームを提供します。

public ref class OutputStreamOverStream sealed : IClosable, IOutputStream
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class OutputStreamOverStream final : IClosable, IOutputStream
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class OutputStreamOverStream : System.IDisposable, IOutputStream
Public NotInheritable Class OutputStreamOverStream
Implements IDisposable, IOutputStream
継承
Object Platform::Object IInspectable OutputStreamOverStream
属性
実装

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

注釈

InputStreamOverStream、OutputStreamOverStream、および RandomAccessStreamOverStream クラスは、ネイティブに非同期であるWindows ランタイム ストリーム型と、ネイティブ同期であるコンポーネント オブジェクト モデル (COM) IStream 型の間で変換する相互運用ヘルパーです。

これらのヘルパー クラスを使用すると、Windows ランタイム ストリーム型に移行するときにレガシ コードを再利用しやすくなります。

メソッド

Close()

現在のストリームを閉じ、システム リソースを解放します。

Dispose()

アンマネージ リソースの解放またはリセットに関連付けられているアプリケーション定義のタスクを実行します。

FlushAsync()

シーケンシャル ストリームで非同期的にデータをフラッシュします。

WriteAsync(IBuffer)

シーケンシャル ストリームに非同期的にデータを書き込みます。

適用対象

こちらもご覧ください