共用方式為


SystemProtection.ScreenLocked 屬性

定義

取得值,這個值表示是否鎖定螢幕。

public:
 static property bool ScreenLocked { bool get(); };
static bool ScreenLocked();
public static bool ScreenLocked { get; }
var boolean = SystemProtection.screenLocked;
Public Shared ReadOnly Property ScreenLocked As Boolean

屬性值

Boolean

bool

如果螢幕已鎖定,則為true;否則為false

適用於