ApplicationDataCreateDisposition ApplicationDataCreateDisposition ApplicationDataCreateDisposition ApplicationDataCreateDisposition 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
enum class winrt::Windows::Storage::ApplicationDataCreateDisposition : int32_t
public enum ApplicationDataCreateDisposition
Public Enum ApplicationDataCreateDisposition
var value = Windows.Storage.ApplicationDataCreateDisposition.always;
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

Always Always Always Always Always 0

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

Existing Existing Existing Existing 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.

See Also