vb System.Uri.DnsSafeHost类(方法)实例源码

下面列出了vb System.Uri.DnsSafeHost 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:Syste   
' Create new Uri using a string address.         
    Dim address As New Uri("http://[fe80::200:39ff:fe36:1a2d%254]/temp/example.htm")
    
    ' Make the address DNS safe. 
    ' The following outputs "[fe80::200:39ff:fe36:1a2d]".
    Console.WriteLine(address.Host)
    
    ' The following outputs "fe80::200:39ff:fe36:1a2d%254".
    Console.WriteLine(address.DnsSafeHost)

End Sub


问题


面经


文章

微信
公众号

扫码关注公众号