Delen via


ILoggingSession.SaveToFileAsync(IStorageFolder, String) Method

Definition

Save the current logging session to a file.

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)

Parameters

folder
IStorageFolder

The folder to save the log file in.

fileName
String

Platform::String

winrt::hstring

The name of the file.

Returns

When this method completes, it returns the new file as a StorageFile.

Attributes

Applies to