【发布时间】:2026-01-18 09:10:02
【问题描述】:
如何将字符串转换为 System.URI。我正在创建一个应用程序,当我用字符串指定 Web 视图源时。我收到一条错误消息“无法从字符串转换为 System.uri” 有人能帮我吗.. 这是示例代码:
case "UF":
ActualLoad = @"https://caa80bd8e97cc4df33a976d33c14171baf481521.googledrive.com/host/0B9--dJ-__iVYMGh0ODJlbUlZeHM/UselessFacts.html";
break;
}
//jokes is the name of the webview
// ActualLoad is a string which contains the link.
Jokes.Source = ActualLoad;
}
【问题讨论】:
标签: c# windows-phone-8 webview