Uri.CheckHostName : Uri « Socket Network « VB.Net Tutorial






Imports System.Net
Imports System.Net.Sockets


Public Class Tester
    Public Shared Sub Main

        Select Case Uri.CheckHostName("www.java2s.com")
            Case UriHostNameType.Basic
                Console.WriteLine("Basic")
            Case UriHostNameType.Dns
                Console.WriteLine("Dns")
            Case UriHostNameType.IPv4
                Console.WriteLine("IPv4")
            Case UriHostNameType.IPv6
                Console.WriteLine("IPv6")
            Case UriHostNameType.Unknown
                Console.WriteLine("Unknown")
        End Select

    End Sub
End Class
Dns








22.2.Uri
22.2.1.Create Uri object and get AbsolutePath and AbsoluteUri
22.2.2.Get Port and Scheme from a Uri
22.2.3.Uri.CheckHostName
22.2.4.URL properties
22.2.5.Uri Host Name Type