UWP - 在默认浏览器上打开 Intranet 页面
UWP - opening intranet pages on default browser
我正在尝试打开一个仅限 Intranet 用户使用单点登录进行身份验证的页面。但是,我无法通过 UWP 执行此操作(对 UWP 相当陌生,所以仍然没有弄清楚新的命名空间和 类)。
我试过下面的代码:
await Windows.System.Launcher.LaunchUriAsync(new Uri("https://abccompany.net"));
现在,如果我用 google.com 替换 url,这似乎工作正常。但是,这对我企业的网站来说是失败的。
我做错了什么?
来自 Launcher.LaunchUriAsync Method 的备注部分:
You must specify the privateNetworkClientServer capability in the manifest in order to launch intranet URIs, for example a file:/// URI pointing to a network location.
您可以通过选中包清单的功能部分中的专用网络(客户端和服务器)选项来执行此操作。
我正在尝试打开一个仅限 Intranet 用户使用单点登录进行身份验证的页面。但是,我无法通过 UWP 执行此操作(对 UWP 相当陌生,所以仍然没有弄清楚新的命名空间和 类)。 我试过下面的代码:
await Windows.System.Launcher.LaunchUriAsync(new Uri("https://abccompany.net"));
现在,如果我用 google.com 替换 url,这似乎工作正常。但是,这对我企业的网站来说是失败的。
我做错了什么?
来自 Launcher.LaunchUriAsync Method 的备注部分:
You must specify the privateNetworkClientServer capability in the manifest in order to launch intranet URIs, for example a file:/// URI pointing to a network location.
您可以通过选中包清单的功能部分中的专用网络(客户端和服务器)选项来执行此操作。