FileIO.AppendTextAsync Methode

Definition

Überlädt

AppendTextAsync(IStorageFile, String)

Fügt Text an die angegebene Datei an.

AppendTextAsync(IStorageFile, String, UnicodeEncoding)

Fügt text an die angegebene Datei mit der angegebenen Zeichencodierung an.

AppendTextAsync(IStorageFile, String)

Fügt Text an die angegebene Datei an.

public:
 static IAsyncAction ^ AppendTextAsync(IStorageFile ^ file, Platform::String ^ contents);
/// [Windows.Foundation.Metadata.Overload("AppendTextAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction AppendTextAsync(IStorageFile const& file, winrt::hstring const& contents);
[Windows.Foundation.Metadata.Overload("AppendTextAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction AppendTextAsync(IStorageFile file, string contents);
function appendTextAsync(file, contents)
Public Shared Function AppendTextAsync (file As IStorageFile, contents As String) As IAsyncAction

Parameter

file
IStorageFile

Die Datei, an die der Text angefügt wird.

contents
String

Platform::String

winrt::hstring

Der anzufügende Text.

Gibt zurück

Nach Abschluss dieser Methode wird kein Objekt oder Wert zurückgegeben.

Attribute

Weitere Informationen

Gilt für:

AppendTextAsync(IStorageFile, String, UnicodeEncoding)

Fügt text an die angegebene Datei mit der angegebenen Zeichencodierung an.

public:
 static IAsyncAction ^ AppendTextAsync(IStorageFile ^ file, Platform::String ^ contents, UnicodeEncoding encoding);
/// [Windows.Foundation.Metadata.Overload("AppendTextWithEncodingAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction AppendTextAsync(IStorageFile const& file, winrt::hstring const& contents, UnicodeEncoding const& encoding);
[Windows.Foundation.Metadata.Overload("AppendTextWithEncodingAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction AppendTextAsync(IStorageFile file, string contents, UnicodeEncoding encoding);
function appendTextAsync(file, contents, encoding)
Public Shared Function AppendTextAsync (file As IStorageFile, contents As String, encoding As UnicodeEncoding) As IAsyncAction

Parameter

file
IStorageFile

Die Datei, an die der Text angefügt wird.

contents
String

Platform::String

winrt::hstring

Der anzufügende Text.

encoding
UnicodeEncoding

Die Zeichencodierung der Datei.

Gibt zurück

Nach Abschluss dieser Methode wird kein Objekt oder Wert zurückgegeben.

Attribute

Weitere Informationen

Gilt für: