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