مشاركة عبر


ApplicationData.ClearAsync Method

Definition

Overloads

ClearAsync()

Removes all application data from the local, roaming, and temporary app data stores.

Note

ClearAsync() method encounters an error if there are any open file handles. You should take care to close all open files prior to calling ClearAsync.

ClearAsync(ApplicationDataLocality)

Removes all application data from the specified app data store.

Note

ClearAsync(ApplicationDataLocality) method encounters an error if there are any open file handles. You should take care to close all open files prior to calling ClearAsync.

ClearAsync()

Removes all application data from the local, roaming, and temporary app data stores.

Note

ClearAsync() method encounters an error if there are any open file handles. You should take care to close all open files prior to calling ClearAsync.

public:
 virtual IAsyncAction ^ ClearAsync() = ClearAsync;
/// [Windows.Foundation.Metadata.Overload("ClearAllAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction ClearAsync();
[Windows.Foundation.Metadata.Overload("ClearAllAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction ClearAsync();
function clearAsync()
Public Function ClearAsync () As IAsyncAction

Returns

An object that is used to manage the asynchronous clear operation.

Attributes

See also

Applies to

ClearAsync(ApplicationDataLocality)

Removes all application data from the specified app data store.

Note

ClearAsync(ApplicationDataLocality) method encounters an error if there are any open file handles. You should take care to close all open files prior to calling ClearAsync.

public:
 virtual IAsyncAction ^ ClearAsync(ApplicationDataLocality locality) = ClearAsync;
/// [Windows.Foundation.Metadata.Overload("ClearAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction ClearAsync(ApplicationDataLocality const& locality);
[Windows.Foundation.Metadata.Overload("ClearAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction ClearAsync(ApplicationDataLocality locality);
function clearAsync(locality)
Public Function ClearAsync (locality As ApplicationDataLocality) As IAsyncAction

Parameters

locality
ApplicationDataLocality

One of the enumeration values.

Returns

An object that is used to manage the asynchronous clear operation.

Attributes

See also

Applies to