LoggingSession.SaveToFileAsync(IStorageFolder, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Saves the current logging session to a file.
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)
Parameters
- folder
- IStorageFolder
The folder that contains the log file.
- fileName
-
String
Platform::String
winrt::hstring
The name of the log file.
Returns
When this method completes, it returns the new file as a StorageFile.
Implements
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)
- Attributes