CortanaSettings.GetDefault 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索当前用户的 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"/>