ActivationSignalDetector.CreateConfigurationWithResultAsync Method

Definition

Aynchronously creates an ActivationSignalDetectionConfigurationCreationResult object associated with the specified ActivationSignalDetectionConfiguration.SignalId and ActivationSignalDetectionConfiguration.ModelId pair, adds it to the collection of supported configurations for the detector, along with an indicator of success.

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)

Parameters

signalId
String

Platform::String

winrt::hstring

The locale-independent identifier for this configuration.

modelId
String

Platform::String

winrt::hstring

The unique identifier, typically locale-specific, for the model data associated with this configuration.

displayName
String

Platform::String

winrt::hstring

The name of the signal in a localizable, human-readable form.

Returns

Returns an IAsyncAction object that is used to control the asynchronous operation.

Attributes

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v14.0)

Applies to

See also