Share via


PathIO.AppendTextAsync Method

Definition

Overloads

AppendTextAsync(String, String)

Appends text to the file at the specified path or Uniform Resource Identifier (URI).

AppendTextAsync(String, String, UnicodeEncoding)

Appends text to the file at the specified path or Uniform Resource Identifier (URI) using the specified character encoding.

AppendTextAsync(String, String)

Appends text to the file at the specified path or Uniform Resource Identifier (URI).

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

Parameters

absolutePath
String

Platform::String

winrt::hstring

The path of the file that the text is appended to.

contents
String

Platform::String

winrt::hstring

The text to append.

Returns

No object or value is returned when this method completes.

Attributes

See also

Applies to

AppendTextAsync(String, String, UnicodeEncoding)

Appends text to the file at the specified path or Uniform Resource Identifier (URI) using the specified character encoding.

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

Parameters

absolutePath
String

Platform::String

winrt::hstring

The path of the file that the text is appended to.

contents
String

Platform::String

winrt::hstring

The text to append.

encoding
UnicodeEncoding

The character encoding of the file.

Returns

No object or value is returned when this method completes.

Attributes

See also

Applies to