Freigeben über


CortanaSettings Klasse

Definition

Bietet Zugriff auf Cortana-Einstellungen.

public ref class CortanaSettings sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.System.SystemManagementContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CortanaSettings final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.System.SystemManagementContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Deprecated("CortanaSettings is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.System.SystemManagementContract")]
class CortanaSettings final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.System.SystemManagementContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CortanaSettings
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.System.SystemManagementContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Deprecated("CortanaSettings is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.System.SystemManagementContract")]
public sealed class CortanaSettings
Public NotInheritable Class CortanaSettings
Vererbung
Object Platform::Object IInspectable CortanaSettings
Attribute

Windows-Anforderungen

Gerätefamilie
Windows IoT Extension SDK (eingeführt in 10.0.15063.0)
API contract
Windows.System.SystemManagementContract (eingeführt in v3.0)

Hinweise

Für die CortanaSettings-Klasse muss Package.appmanifest Folgendes hinzugefügt werden:

  • Zum <Packen>
    • IgnorableNamespaces="iot"
  • Unter <Funktionen>
    • <iot:Capability Name="systemManagement"/>

Eigenschaften

HasUserConsentToVoiceActivation

Ruft ab, ob der Benutzer der Sprachaktivierung zugestimmt hat.

IsVoiceActivationEnabled

Ruft ab oder legt fest, ob die Sprachaktivierung aktiviert ist.

Methoden

GetDefault()

Ruft die Cortana-Einstellungen für den aktuellen Benutzer ab.

IsSupported()

Ruft ab, ob Cortana-Einstellungen unterstützt werden.

Gilt für: