Uri.Port : Uri « System « VB.Net by API






Uri.Port

  
Imports System.Net
Imports System.Net.Sockets


Public Class Tester
    Public Shared Sub Main
        Dim myURI As New Uri("http://www.java2s.com:8080")

        Console.WriteLine(myURI.Host)
        Console.WriteLine(myURI.AbsolutePath)
        Console.WriteLine(myURI.AbsoluteUri)
        Console.WriteLine(myURI.Port.ToString)
        Console.WriteLine(myURI.Scheme)

    End Sub
End Class

   
    
  








Related examples in the same category

1.Uri.AbsolutePath
2.Uri.AbsoluteUri
3.Uri.CheckHostName
4.Uri.Scheme
5.Uri.UserEscaped
6.Uri.UserInfo