开发者

What's the deal with dontEscape support in Uri? .NET 3.5

Documentation state that dontEscape is depr开发者_JS百科ecated and always false.

However it actually works. Is it a good idea to use it anyway, or is there any other alternative to send non RFC compliant Http requests?

Sample Code:

Dim U As New Uri("http://www.google.com/>", True)
Dim W As New Net.WebClient()
WL(W.DownloadString(U))


"The method has been deprecated. Please use GetComponents() or static UnescapeDataString() to unescape a Uri component or a string. http://go.microsoft.com/fwlink/?linkid=14202"

Citation from obsolete attribute. Have you tried this approaches?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜