共用方式為


ILoggingSession.SaveToFileAsync(IStorageFolder, String) 方法

定義

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

public:
 IAsyncOperation<StorageFile ^> ^ SaveToFileAsync(IStorageFolder ^ folder, Platform::String ^ fileName);
/// [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的形式傳回新檔案。

屬性

適用於