Imports SystemPublic Class MainClass Shared Sub Main() Console.WriteLine("HasShutdownStarted: " & System.Environment.HasShutdownStarted ) End Sub End Class