Share via


UserDataAvailability Enum

Definition

Identifies the availability of protected data.

public enum class UserDataAvailability
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
enum class UserDataAvailability
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
public enum UserDataAvailability
var value = Windows.Security.DataProtection.UserDataAvailability.always
Public Enum UserDataAvailability
Inheritance
UserDataAvailability
Attributes

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Fields

Name Value Description
Always 0

Data are unprotected when associated with this availability, and are always accessible whether the device is locked or unlocked.

AfterFirstUnlock 1

Data protected to this availability are accessible from the time the user signs in until the user signs out or the system is shut down or restarted.

Protecting new data to this availability is always possible.

This is also known as "Level 1" availability.

WhileUnlocked 2

Data protected to this availability are available only when the user is signed in and the device is unlocked.

Protecting new data to this availability is always possible.

This is also known as "Level 2" availability.

Applies to

See also