Project Rome用户权限 [英] Project Rome user rights

查看:57
本文介绍了Project Rome用户权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试从覆盆子UWP应用程序访问我的桌面

I try to get access from a raspberry UWP App to my desktop

             Windows.Networking.HostName deviceHost =新Windows.Networking.HostName(QUOT; 192.168.255.37");

         &NBSP ; 试试
            {

                RemoteSystem remotesys =等待RemoteSystem.FindByHostNameAsync(deviceHost);

                VAR luri1 =等待Windows.System.RemoteLauncher.LaunchUriAsync(

                      新RemoteSystemConnectionRequest(remotesys),

                      新的URI(QUOT; bingmaps:CP = 47.6204〜-122.3491&安培;麦粒肿= 3D&安培;弧度= 200安培;坑= 75安培; HDG = 165" ));

            }
            catch(例外e)

            {
             Windows.Networking.HostName deviceHost = new Windows.Networking.HostName("192.168.255.37");
            try
            {
                RemoteSystem remotesys = await RemoteSystem.FindByHostNameAsync(deviceHost);
                var luri1 = await Windows.System.RemoteLauncher.LaunchUriAsync(
                      new RemoteSystemConnectionRequest(remotesys),
                      new Uri("bingmaps:?cp=47.6204~-122.3491&sty=3d&rad=200&pit=75&hdg=165"));
            }
            catch (Exception e)
            {

推荐答案

尝试将以下功能添加到应用程序的appxmanifest中

Try adding the following Capabilities to the appxmanifest of your application

  <Capabilities>
    <Capability Name="internetClient" />
    <Capability Name="internetClientServer" />
    <Capability Name="privateNetworkClientServer" />
  </Capabilities>

privateNetworkClientServer可能就是那个你需要

privateNetworkClientServer is likely the one you need


这篇关于Project Rome用户权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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