ActivationSignalDetectionConfiguration.SetEnabledWithResult(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.
Enables or disables the configuration in an application-level manner, independent of system-level settings, and returns an indicator of success. The configuration must be both allowed and enabled for its associated ActivationSignalDetector.
Important
To avoid possible concurrency issues, we recommend using SetEnabledAsync instead.
public:
virtual ActivationSignalDetectionConfigurationStateChangeResult SetEnabledWithResult(bool value) = SetEnabledWithResult;
ActivationSignalDetectionConfigurationStateChangeResult SetEnabledWithResult(bool const& value);
public ActivationSignalDetectionConfigurationStateChangeResult SetEnabledWithResult(bool value);
function setEnabledWithResult(value)
Public Function SetEnabledWithResult (value As Boolean) As ActivationSignalDetectionConfigurationStateChangeResult
Parameters
- value
-
Boolean
bool
True, if enabled. Otherwise, false.
Returns
A value that indicates whether the call succeeded or the reason it failed.
Windows requirements
Device family |
Windows 11 (introduced in 10.0.22000.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v14.0)
|
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.