ILoggingSession.SaveToFileAsync(IStorageFolder, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將目前的記錄會話儲存至檔案。
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的形式傳回新檔案。
- 屬性