How to

check that event log exists

Published: 1. February 2012 | Updated: 1. February 2012
License: Microsoft Public License (MS-PL)
Categories: Debug, Windows
Tags: C# Debug Windows
Was this snippet helpful for you? YESYES / NONO

Import namespace

using System.Diagnostics;

Code

bool exists = EventLog.Exists("Application");
Send us feedback about this snippet »



Related Snippets: