CortanaSettings.IsSupported 方法

定义

检索是否支持 Cortana 设置。

public:
 static bool IsSupported();
 static bool IsSupported();
/// [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 bool IsSupported();
public static bool IsSupported();
[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 bool IsSupported();
function isSupported()
Public Shared Function IsSupported () As Boolean

返回

Boolean

bool

如果 支持 Cortana 设置,则为 true。 否则为 false

属性

注解

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

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

适用于