FileOutputStream 类

定义

将数据写入文件。

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

Windows 要求

要求 说明
设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

方法

名称 说明
Close()

关闭当前流并释放系统资源。

Dispose()

执行与释放或重置非托管资源关联的应用程序定义的任务。

FlushAsync()

在顺序流中异步刷新数据。

WriteAsync(IBuffer)

将数据异步写入文件。

适用于

另请参阅