FileOutputStream Klasse

Definition

Schreibt Daten in eine Datei.

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
Vererbung
Object Platform::Object IInspectable FileOutputStream
Attribute
Implementiert

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Methoden

Close()

Schließt den aktuellen Stream und gibt Systemressourcen frei.

Dispose()

Führt anwendungsspezifische Aufgaben durch, die mit der Freigabe, der Zurückgabe oder dem Zurücksetzen von nicht verwalteten Ressourcen zusammenhängen.

FlushAsync()

Leert Daten asynchron in einem sequenziellen Stream.

WriteAsync(IBuffer)

Schreibt Daten asynchron in eine Datei.

Gilt für:

Weitere Informationen