مشاركة عبر


FileIO.AppendLinesAsync Method

Definition

Overloads

AppendLinesAsync(IStorageFile, IIterable<String>)

Appends lines of text to the specified file.

AppendLinesAsync(IStorageFile, IIterable<String>, UnicodeEncoding)

Appends lines of text to the specified file using the specified character encoding.

AppendLinesAsync(IStorageFile, IIterable<String>)

Appends lines of text to the specified file.

public:
 static IAsyncAction ^ AppendLinesAsync(IStorageFile ^ file, IIterable<Platform::String ^> ^ lines);
/// [Windows.Foundation.Metadata.Overload("AppendLinesAsync")]
 static IAsyncAction AppendLinesAsync(IStorageFile const& file, IIterable<winrt::hstring> const& lines);
[Windows.Foundation.Metadata.Overload("AppendLinesAsync")]
public static IAsyncAction AppendLinesAsync(IStorageFile file, IEnumerable<string> lines);
function appendLinesAsync(file, lines)
Public Shared Function AppendLinesAsync (file As IStorageFile, lines As IEnumerable(Of String)) As IAsyncAction

Parameters

file
IStorageFile

The file that the lines are appended to.

lines

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

The list of text strings to append as lines.

Returns

No object or value is returned when this method completes.

Attributes

See also

Applies to

AppendLinesAsync(IStorageFile, IIterable<String>, UnicodeEncoding)

Appends lines of text to the specified file using the specified character encoding.

public:
 static IAsyncAction ^ AppendLinesAsync(IStorageFile ^ file, IIterable<Platform::String ^> ^ lines, UnicodeEncoding encoding);
/// [Windows.Foundation.Metadata.Overload("AppendLinesWithEncodingAsync")]
 static IAsyncAction AppendLinesAsync(IStorageFile const& file, IIterable<winrt::hstring> const& lines, UnicodeEncoding const& encoding);
[Windows.Foundation.Metadata.Overload("AppendLinesWithEncodingAsync")]
public static IAsyncAction AppendLinesAsync(IStorageFile file, IEnumerable<string> lines, UnicodeEncoding encoding);
function appendLinesAsync(file, lines, encoding)
Public Shared Function AppendLinesAsync (file As IStorageFile, lines As IEnumerable(Of String), encoding As UnicodeEncoding) As IAsyncAction

Parameters

file
IStorageFile

The file that the lines are appended to.

lines

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

The list of text strings to append as lines.

encoding
UnicodeEncoding

The character encoding of the file.

Returns

No object or value is returned when this method completes.

Attributes

See also

Applies to