PathIO.AppendTextAsync 方法

定義

多載

AppendTextAsync(String, String)

將文字附加至位於指定路徑或統一資源識別項 (URI) 的檔案。

AppendTextAsync(String, String, UnicodeEncoding)

使用指定的字元編碼,將文字附加至位於指定路徑或統一資源識別項的檔案 (URI) 。

AppendTextAsync(String, String)

將文字附加至位於指定路徑或統一資源識別項 (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

參數

absolutePath
String

Platform::String

winrt::hstring

附加文字的檔案路徑。

contents
String

Platform::String

winrt::hstring

要附加的文字。

傳回

這個方法完成時不會傳回任何物件或值。

屬性

另請參閱

適用於

AppendTextAsync(String, String, UnicodeEncoding)

使用指定的字元編碼,將文字附加至位於指定路徑或統一資源識別項的檔案 (URI) 。

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

參數

absolutePath
String

Platform::String

winrt::hstring

附加文字的檔案路徑。

contents
String

Platform::String

winrt::hstring

要附加的文字。

encoding
UnicodeEncoding

檔案的字元編碼。

傳回

這個方法完成時不會傳回任何物件或值。

屬性

另請參閱

適用於