共用方式為


ApplicationDataContainer Class

Definition

Represents a container for settings. The methods and properties of this class support creating, deleting, enumerating, and traversing the container hierarchy.

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

Properties

Containers

Gets the child settings containers of the current settings container.

Locality

Gets the type of the application data store that's associated with the settings container.

Name

Gets the name of the current settings container.

Values

Gets an object that represents the settings in the settings container.

Methods

Close()

Closes the current settings container.

CreateContainer(String, ApplicationDataCreateDisposition)

Create or open the specified settings container in the settings container.

DeleteContainer(String)

Deletes the specified settings container, its subcontainers, and all settings in the hierarchy.

Dispose()

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

Applies to