Dela via


ActivationSignalDetector.CreateConfigurationWithResult Method

Definition

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.

Important

To avoid possible concurrency issues, we recommend using CreateConfigurationWithResultAsync(System.String,System.String,System.String) instead.

public:
 virtual ActivationSignalDetectionConfigurationCreationResult ^ CreateConfigurationWithResult(Platform::String ^ signalId, Platform::String ^ modelId, Platform::String ^ displayName) = CreateConfigurationWithResult;
ActivationSignalDetectionConfigurationCreationResult CreateConfigurationWithResult(winrt::hstring const& signalId, winrt::hstring const& modelId, winrt::hstring const& displayName);
public ActivationSignalDetectionConfigurationCreationResult CreateConfigurationWithResult(string signalId, string modelId, string displayName);
function createConfigurationWithResult(signalId, modelId, displayName)
Public Function CreateConfigurationWithResult (signalId As String, modelId As String, displayName As String) As 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

An object that provides the configuration and the status of the configuration.

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