![]() ![]() ' Then it checks whether it represents a loopback address. ' passed ipAddress parameter is in the correct format. ' This method calls the IPAddress.Parse method to check whether the ' Parse the address string entered by the user. Display program usage.Ĭonsole.WriteLine("Please enter an IP address.")Ĭonsole.WriteLine("Usage: >ipaddress_isloopback any IPv4 or IPv6 address.")Ĭonsole.WriteLine("Example: >ipaddress_isloopback 127.0.0.1")Ĭonsole.WriteLine("Example: >ipaddress_isloopback 0:0:0:0:0:0:0:1") Overloads Private Shared Sub Main(args() As String) 'Entry point which delegates to C-style main Private Function LoopBack = " is an IPv4 loopback address " Ĭonsole.WriteLine("Your input address: " "\"" ipAddress "\"" loopBack) Ĭonsole.WriteLine("FormatException caught!!!") Ĭonsole.WriteLine("Source : " e.Source) Ĭonsole.WriteLine("Message : " e.Message) Ĭonsole.WriteLine("Exception caught!!!") If(IPAddress.IsLoopback(address)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |