CortanaSettings 클래스

정의

Cortana 설정에 대한 액세스를 제공합니다.

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
상속
Object Platform::Object IInspectable CortanaSettings
특성

Windows 요구 사항

디바이스 패밀리
Windows IoT Extension SDK (10.0.15063.0에서 도입되었습니다.)
API contract
Windows.System.SystemManagementContract (v3.0에서 도입되었습니다.)

설명

CortanaSettings 클래스를 사용하려면 Package.appmanifest에 다음을 추가해야 합니다.

  • 패키지로 <>
    • IgnorableNamespaces="iot"
  • 기능 아래 <>
    • <iot:Capability Name="systemManagement"/>

속성

HasUserConsentToVoiceActivation

사용자가 음성 활성화에 동의했는지 여부를 가져옵니다.

IsVoiceActivationEnabled

음성 활성화를 사용할지 여부를 가져오거나 설정합니다.

메서드

GetDefault()

현재 사용자의 Cortana 설정을 검색합니다.

IsSupported()

Cortana 설정이 지원되는지 여부를 검색합니다.

적용 대상