SystemProtection SystemProtection SystemProtection SystemProtection SystemProtection Class


Provides information related to system protection.

public : static class SystemProtection
static struct winrt::Windows::Phone::System::SystemProtection
public static class SystemProtection
Public Static Class SystemProtection
// This class does not provide a public constructor.
Windows 10 requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)


ScreenLocked ScreenLocked ScreenLocked ScreenLocked ScreenLocked

Gets a value that indicates whether the screen is locked.

public : static Platform::Boolean ScreenLocked { get; }
static bool ScreenLocked();
public static bool ScreenLocked { get; }
Public Static ReadOnly Property ScreenLocked As bool
var bool = Windows.Phone.System.SystemProtection.screenLocked;
bool bool bool

true if the screen is locked; otherwise, false.


RequestScreenUnlock() RequestScreenUnlock() RequestScreenUnlock() RequestScreenUnlock() RequestScreenUnlock()

Requests the unlocking of the screen.

public : static void RequestScreenUnlock()
void RequestScreenUnlock() const;
public static void RequestScreenUnlock()
Public Static Function RequestScreenUnlock() As void