This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies options for creating application data containers or returning existing containers. This enumeration is used by theApplicationDataContainer.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 ApplicationDataCreateDispositionvar value = Windows.Storage.ApplicationDataCreateDisposition.alwaysPublic Enum ApplicationDataCreateDisposition| Requirements | Description |
|---|---|
| Device family | Windows 10 (introduced in 10.0.10240.0) |
| API contract | Windows.Foundation.UniversalApiContract (introduced in v1.0) |
| 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 typeSystem.Exception if the specified container does not exist. |
See the code example inApplicationDataContainer.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?