Sdílet prostřednictvím


ApplicationDataCreateDisposition Enum

Definition

Specifies options for creating application data containers or returning existing containers. This enumeration is used by the ApplicationDataContainer.CreateContainer method.

public enum class ApplicationDataCreateDisposition
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class ApplicationDataCreateDisposition
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum ApplicationDataCreateDisposition
var value = Windows.Storage.ApplicationDataCreateDisposition.always
Public Enum ApplicationDataCreateDisposition
Inheritance
ApplicationDataCreateDisposition
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Always 0

Always returns the specified container. Creates the container if it does not exist.

Existing 1

Returns the specified container only if it already exists. Raises an exception of type System.Exception if the specified container does not exist.

Examples

See the code example in ApplicationDataContainer.

Applies to

See also