次の方法で共有


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 設定がサポートされているかどうかを取得します。

適用対象