将URL的字符串值转换为VB.NET中的URI类型的最快方法是什么?
发布于 2012-04-23 18:07:36
是。
Dim myUri As New Uri("http://www.contoso.com/")只需将字符串替换为您的变量,就可以了。
发布于 2012-04-23 18:08:22
只需将字符串传递给构造函数即可。
Dim url As String = "http://test.com"
Dim uri As New Uri(url)https://stackoverflow.com/questions/10278473
复制相似问题