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