CortanaPermissionsManager.IsSupported 方法

定义

检索是否支持 Cortana。

public:
 virtual bool IsSupported() = IsSupported;
bool IsSupported();
/// [Windows.Foundation.Metadata.Deprecated("ICortanaPermissionsManager is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
bool IsSupported();
public bool IsSupported();
[Windows.Foundation.Metadata.Deprecated("ICortanaPermissionsManager is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
public bool IsSupported();
function isSupported()
Public Function IsSupported () As Boolean

返回

Boolean

bool

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

属性

Windows 要求

应用功能
cortanaPermissions

注解

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

  • 要 <打包>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • 在“功能”下<>
    • <rescap:capability name="cortanaPermissions"/>

适用于