Share via


LockOnLeaveOptions 类

定义

提供根据人机状态传感器是否检测到用户来管理电脑屏幕的锁定行为的功能。

public ref class LockOnLeaveOptions sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 983040)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class LockOnLeaveOptions final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 983040)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class LockOnLeaveOptions
Public NotInheritable Class LockOnLeaveOptions
继承
Object Platform::Object IInspectable LockOnLeaveOptions
属性

Windows 要求

设备系列
Windows 11 Insider Preview (在 10.0.23504.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v15.0 中引入)

注解

在 Windows 11 版本 22H2 内部版本 22621 的 5 月时刻更新中引入。

用户可以在“系统设置” (请参阅 启动 Windows 设置应用) 中指定其首选的“离开锁定”行为。

属性

AllowWhenExternalDisplayConnected

获取或设置在外部监视器连接到系统时是否启用锁定离开行为。

适用于

另请参阅