LockOnLeaveOptions.AllowWhenExternalDisplayConnected Property
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.
Gets or sets whether lock on leave behavior is enabled when an external monitor is connected to the system.
public:
property bool AllowWhenExternalDisplayConnected { bool get(); void set(bool value); };
bool AllowWhenExternalDisplayConnected();
void AllowWhenExternalDisplayConnected(bool value);
public bool AllowWhenExternalDisplayConnected { get; set; }
var boolean = lockOnLeaveOptions.allowWhenExternalDisplayConnected;
lockOnLeaveOptions.allowWhenExternalDisplayConnected = boolean;
Public Property AllowWhenExternalDisplayConnected As Boolean
Property Value
bool
True, if lock on leave behavior is enabled when an external monitor is connected to the system. Otherwise, false.
Remarks
Introduced in the May Moment update for Windows 11, Version 22H2, Build 22621.
The user can specify their preferred lock on leave behavior in the System settings (see Launch the Windows Settings app).