|
-
May 19th, 2011, 03:22 PM
#1
How do I exit a program early
Hi,
I am writing a C# program that runs every night as a scheduled task. When I get specific errors that are non-recoverable, I want to write a log entry and abort further processing. So far, I've yet to discover how to do this (googling and a coupe of C# books to no avail). My background is Java and there the command is simply "System.exit(0)". It exits the program immediately, which is just what I want to do in C#. What is the C# equivalent?
Thanks,
Rob
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|