ConversationalAgentSession.RequestActivationAsync 方法

定义

异步请求将数字助手激活到前台。

public:
 virtual IAsyncOperation<ConversationalAgentActivationResult> ^ RequestActivationAsync(ConversationalAgentActivationKind activationKind) = RequestActivationAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<ConversationalAgentActivationResult> RequestActivationAsync(ConversationalAgentActivationKind const& activationKind);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<ConversationalAgentActivationResult> RequestActivationAsync(ConversationalAgentActivationKind activationKind);
function requestActivationAsync(activationKind)
Public Function RequestActivationAsync (activationKind As ConversationalAgentActivationKind) As IAsyncOperation(Of ConversationalAgentActivationResult)

参数

activationKind
ConversationalAgentActivationKind

支持的代理激活类型。

请求激活时,可以选择是在语音激活预览窗口还是普通窗口中激活代理。

返回

激活的结果。

属性

Windows 要求

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

注解

这是 RequestForegroundActivationAsync 方法的更新版本。

适用于