【发布时间】:2016-09-23 04:28:16
【问题描述】:
在通用应用程序(windows 10)的以下代码中,可以打开 Skype 并调用 usertocall。 如果此 uri 更改为 new Uri(@"ms-Onedrive:"); OneDrive 应用程序将被打开。 哪个是访问存储在 Onedrive 中的特定文档的正确 Uri?
private async void button_Click(object sender, RoutedEventArgs e)
{
var uriSkype = new Uri(@"skype:(usertocall)?call");
// Set the option to show a warning
var promptOptions = new Windows.System.LauncherOptions();
// promptOptions.TreatAsUntrusted = true;
// Launch the URI
var success = await Windows.System.Launcher.LaunchUriAsync(uriSkype);
if (success)
{
// URI launched
}
else
{
// URI launch failed
}
}
【问题讨论】: