共用方式為


LoggingSession.SaveToFileAsync(IStorageFolder, String) 方法

定義

將目前的記錄會話儲存至檔案。

public:
 virtual IAsyncOperation<StorageFile ^> ^ SaveToFileAsync(IStorageFolder ^ folder, Platform::String ^ fileName) = SaveToFileAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageFile> SaveToFileAsync(IStorageFolder const& folder, winrt::hstring const& fileName);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageFile> SaveToFileAsync(IStorageFolder folder, string fileName);
function saveToFileAsync(folder, fileName)
Public Function SaveToFileAsync (folder As IStorageFolder, fileName As String) As IAsyncOperation(Of StorageFile)

參數

folder
IStorageFolder

包含記錄檔的資料夾。

fileName
String

Platform::String

winrt::hstring

記錄檔的名稱。

傳回

當這個方法完成時,它會以 StorageFile的形式傳回新檔案。

實作

M:Windows.Foundation.Diagnostics.ILoggingSession.SaveToFileAsync(Windows.Storage.IStorageFolder,System.String) M:Windows.Foundation.Diagnostics.ILoggingSession.SaveToFileAsync(Windows.Storage.IStorageFolder,Platform::String) M:Windows.Foundation.Diagnostics.ILoggingSession.SaveToFileAsync(Windows.Storage.IStorageFolder,winrt::hstring)
屬性

適用於

另請參閱