Dela via


UserDataAccount.IsProtectedUnderLock Property

Definition

Gets a Boolean value indicating if the user account data is encrypted when the device becomes locked.

public:
 property bool IsProtectedUnderLock { bool get(); };
public:
 property bool IsProtectedUnderLock { bool get(); void set(bool value); };
bool IsProtectedUnderLock();
bool IsProtectedUnderLock();

void IsProtectedUnderLock(bool value);
public bool IsProtectedUnderLock { get; }
public bool IsProtectedUnderLock { get; set; }
var boolean = userDataAccount.isProtectedUnderLock;
var boolean = userDataAccount.isProtectedUnderLock;
userDataAccount.isProtectedUnderLock = boolean;
Public ReadOnly Property IsProtectedUnderLock As Boolean
Public Property IsProtectedUnderLock As Boolean

Property Value

Boolean

bool

A Boolean value indicating if the user account data is encrypted when the device becomes locked.

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)

Remarks

Encrypted data will return as empty value sets during a locked state.

Applies to