LockApplicationHost 类

定义

允许锁屏应用请求设备解锁,并允许应用注册,以在设备开始解锁时收到通知。

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

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

方法

GetForCurrentView()

获取 LockApplicationHost 对象。

RequestUnlock()

请求设备解锁。

事件

Unlocking

指示设备正在解锁。

适用于