ApplicationData Class

Definition

Provides access to the application data store.

public ref class ApplicationData sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.Storage.ApplicationDataContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ApplicationData final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.Storage.ApplicationDataContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ApplicationData : System.IDisposable
Public NotInheritable Class ApplicationData
Implements IDisposable
Inheritance
Object Platform::Object IInspectable ApplicationData
Attributes
Implements

Properties

IsMachinePathSupported

A value that indicates whether the package family supports the machine data store.

LocalCacheFolder

A StorageFolder for the local cache data store, which is not included in backup and restore operations.

LocalCachePath

A string value that represents the path for the local cache data store not included in backup and restore operations.

LocalFolder

A StorageFolder for the local data store. This location is backed up to the cloud.

LocalPath

A string value that represents the path for the local data store. This location is backed up to the cloud.

LocalSettings

An ApplicationDataContainer for the local data store.

MachineFolder

A StorageFolder for the machine data store.

MachinePath

A value that represents the path for the machine data store.

SharedLocalFolder

A StorageFolder for the shared data store.

SharedLocalPath

A string value that represents the path for the shared data store.

TemporaryFolder

A StorageFolder for the temporary data store.

TemporaryPath

A string value that represents the path for the temporary data store.

Methods

ClearAsync(ApplicationDataLocality)

Removes all data from the specified data store asynchronously.

ClearPublisherCacheFolderAsync(String)

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

Close()

Closes the current instance of ApplicationData.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetDefault()

Gets an instance of ApplicationData for the current user.

GetForPackageFamily(String)

Get an instance of ApplicationData for the specified package family for the current user.

GetForUser(User)

Get an instance of ApplicationData for the specified user.

GetPublisherCacheFolder(String)

Gets the specified subfolder of the shared data store for the publisher of the app.

GetPublisherCachePath(String)

Gets the specified path of the shared data store for the publisher of the app.

Applies to