Bagikan melalui


CortanaSettings.HasUserConsentToVoiceActivation Properti

Definisi

Mendapatkan apakah pengguna telah menyetujui aktivasi suara.

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

Nilai Properti

Boolean

bool

true jika pengguna telah menyetujui. Jika tidak, salah.

Atribut

Keterangan

Kelas CortanaSettings mengharuskan hal berikut ditambahkan ke Package.appmanifest:

  • Ke <Paket>
    • IgnorableNamespaces="iot"
  • Di bawah <Kapabilitas>
    • <iot:Capability Name="systemManagement"/>

Berlaku untuk