UserDataAvailability Enum
Definition
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.
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
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. |
Always | 0 | Data are unprotected when associated with this availability, and are always accessible whether the device is locked or unlocked. |
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. |