FileIO.AppendTextAsync Метод

Определение

Перегрузки

AppendTextAsync(IStorageFile, String)

Добавляет текст в указанный файл.

AppendTextAsync(IStorageFile, String, UnicodeEncoding)

Добавляет текст в указанный файл с использованием указанной кодировки символов.

AppendTextAsync(IStorageFile, String)

Добавляет текст в указанный файл.

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

Параметры

file
IStorageFile

Файл, к которому добавляется текст.

contents
String

Platform::String

winrt::hstring

Добавляемый текст.

Возвращаемое значение

После завершения этого метода объект или значение не возвращаются.

Атрибуты

См. также раздел

Применяется к

AppendTextAsync(IStorageFile, String, UnicodeEncoding)

Добавляет текст в указанный файл с использованием указанной кодировки символов.

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

Параметры

file
IStorageFile

Файл, к которому добавляется текст.

contents
String

Platform::String

winrt::hstring

Добавляемый текст.

encoding
UnicodeEncoding

Кодировка символов файла.

Возвращаемое значение

После завершения этого метода объект или значение не возвращаются.

Атрибуты

См. также раздел

Применяется к