UWP应用程序中的runFullTrust模式默认情况下是否支持broadFileAccess? [英] Is runFullTrust mode in UWP app ,capable of broadFileAccess by default?

查看:252
本文介绍了UWP应用程序中的runFullTrust模式默认情况下是否支持broadFileAccess?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个UWP应用,该应用需要受限制的功能"broadFileAccess"才能从文件访问数据.我还必须使用"runFullTrust"功能进行注册表访问.我的理解是,处于"runFullTrust"模式的应用程序同时具有文件和注册表访问权限,并且"runFullTrust"是更高级别的功能.

I have a UWP app that requires the restricted capability "broadFileAccess" to access data from a file. I also have to use "runFullTrust" capability for registry access. My understanding was that an app in "runFullTrust" mode had both file and registry access permissions and that "runFullTrust" is a higher level capability.

问题: 我尝试提供"runFullTrust"功能,但是由于某些原因,文件访问权限被拒绝,而且我什至没有选择在应用程序的设置"下启用它的选项. 我还尝试同时授予这两个权限,然后又出现了文件访问被拒绝"错误.

Problem: I tried giving "runFullTrust" capability,but for some reason the file access permissions are denied and also I dont even have an option to enable it under Settings for the app. I also tried giving both the permissions,also then I got the File access denied error.

问题: 我可以为应用程序提供"runFullTrust"功能,它会自动继承"broadFileAccess:功能吗?还是我做错了什么?

Question: Can I give "runFullTrust" capability to the app ,and will it automatically inherit "broadFileAccess: capability? Or is it something I am doing wrong?

推荐答案

源自官方

runFullTrust受限功能允许应用程序在用户计算机上以完全信任权限级别运行.要使用FullTrustProcessLauncher API,此功能是必需的.

The runFullTrust restricted capability allows apps to run at the full trust permission level on the user’s machine. This capability is required to use the FullTrustProcessLauncher API.

以appx或msix软件包(与Desktop Bridge一起)交付的任何桌面应用程序也需要此功能,当使用Desktop App Converter(DAC)或Windows XP打包这些应用程序时,它将自动出现在清单中. Visual Studio.

This capability is also required for any desktop application that is delivered as an appx or msix package (as with the Desktop Bridge), and it will automatically appear in your manifest when packaging these apps using the Desktop App Converter (DAC) or Visual Studio.

broadFileSystemAccess功能允许应用程序与当前正在运行该应用程序的用户获得对文件系统的相同访问权限,而在运行时不会出现任何其他文件选择器样式的提示.此功能适用于Windows.Storage API.由于用户可以随时在设置"中授予或拒绝该权限,因此,如果添加了此功能,则还需要检查设置页面中的选项.

The broadFileSystemAccess capability allows apps to get the same access to the file system as the user who is currently running the app without any additional file-picker style prompts during runtime. This capability works for the Windows.Storage APIs. Because users can grant or deny the permission any time in Settings, So if you have add this capability you also need to check the option in the setting page.

访问权限可在设置>中进行配置.隐私>文件系统.

这篇关于UWP应用程序中的runFullTrust模式默认情况下是否支持broadFileAccess?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆