ConversationalAgentSession.SetSupportLockScreenActivationAsync 方法

定义

异步启用或禁用对会话代理的锁屏激活的支持。

public:
 virtual IAsyncAction ^ SetSupportLockScreenActivationAsync(bool lockScreenActivationSupported) = SetSupportLockScreenActivationAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction SetSupportLockScreenActivationAsync(bool const& lockScreenActivationSupported);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction SetSupportLockScreenActivationAsync(bool lockScreenActivationSupported);
function setSupportLockScreenActivationAsync(lockScreenActivationSupported)
Public Function SetSupportLockScreenActivationAsync (lockScreenActivationSupported As Boolean) As IAsyncAction

参数

lockScreenActivationSupported
Boolean

bool

如果启用了锁屏界面激活,则为 True。 否则为 false。

返回

返回用于控制异步操作的 IAsyncAction 对象。

属性

Windows 要求

设备系列
Windows 11 (在 10.0.22000.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v14.0 中引入)

适用于