ActivationSignalDetectionConfiguration.SetEnabledAsync(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Asynchronously enables or disables the configuration in an application-level manner, independent of system-level settings. The configuration must be both allowed and enabled for its associated ActivationSignalDetector.
public:
virtual IAsyncAction ^ SetEnabledAsync(bool value) = SetEnabledAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction SetEnabledAsync(bool const& value);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction SetEnabledAsync(bool value);
function setEnabledAsync(value)
Public Function SetEnabledAsync (value As Boolean) As IAsyncAction
Parameters
- value
-
Boolean
bool
True, if enabled. Otherwise, false.
Returns
Returns an IAsyncAction object that is used to control the asynchronous operation.
- Attributes
Remarks
Configuration might not be active even if configuration is enabled successfully. For configuration to be active, all necessary resources must be available and configuration permissions must be granted by the user in Settings.
Applies to
See also
- DetectionConfigurationAvailabilityInfo
- <xref:Windows.ApplicationModel.ConversationalAgent.ActivationSignalDetectionConfiguration.SetEnabled(System.Boolean)+M%3aWindows.ApplicationModel.ConversationalAgent.ActivationSignalDetectionConfiguration.SetEnabledWithResult(System.Boolean)>
- SetEnabledWithResultAsync(Boolean)