共用方式為


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

指出裝置正在解除鎖定。

適用於