Dela via


ApplicationData.ClearPublisherCacheFolderAsync(String) Method

Definition

Clears the files and subfolders from the specified subfolder of the shared storage folder for the publisher of the current app.

public:
 virtual IAsyncAction ^ ClearPublisherCacheFolderAsync(Platform::String ^ folderName) = ClearPublisherCacheFolderAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction ClearPublisherCacheFolderAsync(winrt::hstring const& folderName);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction ClearPublisherCacheFolderAsync(string folderName);
function clearPublisherCacheFolderAsync(folderName)
Public Function ClearPublisherCacheFolderAsync (folderName As String) As IAsyncAction

Parameters

folderName
String

Platform::String

winrt::hstring

The subfolder of the shared storage folder for the publisher of the current app from which to clear the files and subfolders.

Returns

Represents an asynchronous action that does not return a result and does not have progress notifications. You can use this value to get the results of the operation, or to specify a method to run when the operation completes - for example, to repopulate the shared storage folder with new data.

Attributes

Remarks

For more info about how to share files and folders among apps from the same publisher, see GetPublisherCacheFolder.

Applies to

See also