Movatterモバイル変換


[0]ホーム

URL:


Skip to main contentSkip to in-page navigation

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

ApplicationDataCreateDisposition Enum

Definition

Namespace:
Windows.Storage

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 ApplicationDataCreateDisposition
var value = Windows.Storage.ApplicationDataCreateDisposition.always
Public Enum ApplicationDataCreateDisposition
Inheritance
ApplicationDataCreateDisposition
Attributes

Windows requirements

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

Fields

NameValueDescription
Always0

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

Existing1

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

Examples

See the code example inApplicationDataContainer.

Applies to

See also


Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?