ActivationSignalDetector.CreateConfigurationWithResultAsync 方法

定义

Aynchronous 创建与指定的 ActivationSignalDetectionConfiguration.SignalIdActivationSignalDetectionConfiguration.ModelId 对关联的 ActivationSignalDetectionConfigurationCreationResult 对象,并将其添加到检测器支持的配置的集合中,以及成功指示器。

public:
 virtual IAsyncOperation<ActivationSignalDetectionConfigurationCreationResult ^> ^ CreateConfigurationWithResultAsync(Platform::String ^ signalId, Platform::String ^ modelId, Platform::String ^ displayName) = CreateConfigurationWithResultAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<ActivationSignalDetectionConfigurationCreationResult> CreateConfigurationWithResultAsync(winrt::hstring const& signalId, winrt::hstring const& modelId, winrt::hstring const& displayName);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<ActivationSignalDetectionConfigurationCreationResult> CreateConfigurationWithResultAsync(string signalId, string modelId, string displayName);
function createConfigurationWithResultAsync(signalId, modelId, displayName)
Public Function CreateConfigurationWithResultAsync (signalId As String, modelId As String, displayName As String) As IAsyncOperation(Of ActivationSignalDetectionConfigurationCreationResult)

参数

signalId
String

Platform::String

winrt::hstring

此配置的区域设置独立标识符。

modelId
String

Platform::String

winrt::hstring

与此配置关联的模型数据的唯一标识符(通常特定于区域设置)。

displayName
String

Platform::String

winrt::hstring

以可本地化的人类可读形式表示的信号的名称。

返回

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

属性

Windows 要求

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

适用于

另请参阅