CortanaSettings.HasUserConsentToVoiceActivation Property
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.
Gets whether the user has consented to voice activation.
public:
property bool HasUserConsentToVoiceActivation { bool get(); };
bool HasUserConsentToVoiceActivation();
/// [get: Windows.Foundation.Metadata.Deprecated("ICortanaSettings is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.System.SystemManagementContract")]
bool HasUserConsentToVoiceActivation();
public bool HasUserConsentToVoiceActivation { get; }
public bool HasUserConsentToVoiceActivation { [Windows.Foundation.Metadata.Deprecated("ICortanaSettings is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.System.SystemManagementContract")] get; }
var boolean = cortanaSettings.hasUserConsentToVoiceActivation;
Public ReadOnly Property HasUserConsentToVoiceActivation As Boolean
Property Value
Boolean
bool
true if the user has consented. Otherwise, false.
- Attributes
Remarks
The CortanaSettings class requires the following be added to the Package.appmanifest:
- To <Package>
IgnorableNamespaces="iot"
- Under <Capabilities>
<iot:Capability Name="systemManagement"/>