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 返回。

属性

适用于