PathIO.AppendTextAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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