Share via


LockOnLeaveOptions.AllowWhenExternalDisplayConnected Property

Definition

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

Boolean

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).

Applies to

See also