VB.Net/Language Basics/Exit Try

Материал из VB Эксперт
Перейти к: навигация, поиск

Only Exit Try

Imports System

public class MainClass
   Shared Sub Main()
      Try
          Dim Result As Double = 100 \ CInt("0")
          Console.WriteLine(Result)
      Catch DivByZero As System.DivideByZeroException
          Exit Try
      End Try
      Console.WriteLine("** outside try **")
      
   End Sub
End Class