CortanaSettings.GetDefault 方法

定义

检索当前用户的 Cortana 设置。

public:
 static CortanaSettings ^ GetDefault();
 static CortanaSettings GetDefault();
/// [Windows.Foundation.Metadata.Deprecated("ICortanaSettingsStatics is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.System.SystemManagementContract")]
 static CortanaSettings GetDefault();
public static CortanaSettings GetDefault();
[Windows.Foundation.Metadata.Deprecated("ICortanaSettingsStatics is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.System.SystemManagementContract")]
public static CortanaSettings GetDefault();
function getDefault()
Public Shared Function GetDefault () As CortanaSettings

返回

CortanaSettings 对象。

属性

注解

CortanaSettings 类要求将以下内容添加到 Package.appmanifest:

  • 要 <打包>
    • IgnorableNamespaces="iot"
  • 在“功能”下<>
    • <iot:Capability Name="systemManagement"/>

适用于