diff options
author | Jonathan Pryor <jpryor@novell.com> | 2002-06-09 22:06:07 +0400 |
---|---|---|
committer | Jonathan Pryor <jpryor@novell.com> | 2002-06-09 22:06:07 +0400 |
commit | f7a8fc051bdb62a5f648b3cedb6e10ca47d22a12 (patch) | |
tree | 20b3b0cbc161666bda40e40abfda194a59c5f16b /mcs/class/System/System.Diagnostics/EventLog.cs | |
parent | d505910c8da8d7d0002239d3da62a6fc0450f294 (diff) |
* EntryWrittenEventArgs.cs: Implemented
* EntryWrittenEventHandler.cs: Implemented
* EventLog.cs: Stubbed out
* EventLogEntry.cs: Stubbed out
* EventLogEntryCOllection.cs: Implemented.
* EventLogEntryType.cs: Implemented
* EventLogInstaller.cs: Stubbed out
* EventLogPermission.cs: Stubbed out
* EventLogPermissionAccess.cs: Implemented
* EventLogPermissionAttribute.cs: Stubbed out
* EventLogPermissionEntry.cs: Stubbed out
* EventLogPermissionEntryCollection.cs: Stubbed out
* EventLogTraceListener.cs: Stubbed out
svn path=/trunk/mcs/; revision=5191
Diffstat (limited to 'mcs/class/System/System.Diagnostics/EventLog.cs')
-rw-r--r-- | mcs/class/System/System.Diagnostics/EventLog.cs | 271 |
1 files changed, 271 insertions, 0 deletions
diff --git a/mcs/class/System/System.Diagnostics/EventLog.cs b/mcs/class/System/System.Diagnostics/EventLog.cs new file mode 100644 index 00000000000..477191cd8af --- /dev/null +++ b/mcs/class/System/System.Diagnostics/EventLog.cs @@ -0,0 +1,271 @@ +// +// System.Diagnostics.EventLog.cs +// +// Authors: +// Jonathan Pryor (jonpryor@vt.edu) +// +// (C) 2002 +// + +using System; +using System.Diagnostics; +using System.ComponentModel; + +namespace System.Diagnostics { + + [MonoTODO("This class is just stubbed out")] + public class EventLog : Component, ISupportInitialize { + + private string source; + private string logName; + private string machineName; + + public EventLog() : this ("") + { + } + + public EventLog(string logName) : this (logName, "") + { + } + + public EventLog(string logName, string machineName) + : this (logName, machineName, "") + { + } + + public EventLog(string logName, string machineName, + string source) + { + this.source = source; + this.machineName = machineName; + this.logName = logName; + } + +// [MonoTODO] +// public bool EnableRaisingEvents { +// get {return false;} +// set {/* ignore */} +// } +// +// [MonoTODO] +// public EventLogEntryCollection Entries { +// get {return null;} +// } +// +// [MonoTODO] +// public string Log { +// get {return log;} +// set {log = value;} +// } +// +// [MonoTODO] +// public string LogDisplayName { +// get {return "";} +// } +// +// [MonoTODO] +// public string MachineName { +// get {return machineName;} +// set {/* ignore */} +// } +// +// [MonoTODO] +// public string Source { +// get {return source;} +// set {/* ignore */} +// } +// +// [MonoTODO] +// public ISynchronizeInvoke SynchronizingObject { +// get {return null;} +// set {/* ignore */} +// } +// + [MonoTODO] + public void BeginInit() + { + throw new NotImplementedException (); + } + +// [MonoTODO] +// public void Clear() +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public void Close() +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public static void CreateEventSource(string source, +// string logName) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public static void CreateEventSource(string source, +// string logName, +// string machineName) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public static void Delete(string logName) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public static void Delete(string logName, string machineName) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public static void DeleteEventSource(string source) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public static void DeleteEventSource(string source, +// string machineName) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// protected override void Dispose(bool disposing) +// { +// throw new NotImplementedException (); +// } +// + [MonoTODO] + public void EndInit() + { + throw new NotImplementedException (); + } + +// [MonoTODO] +// public static bool Exists(string logName) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public static bool Exists(string logName, string machineName) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public static EventLog[] GetEventLogs() +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public static EventLog[] GetEventLogs(string machineName) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public static string LogNameFromSourceName(string source, +// string machineName) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public static bool SourceExists(string source) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public static bool SourceExists(string source, +// string machineName) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public void WriteEntry(string message) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public void WriteEntry(string message, EventLogEntryType type) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public static void WriteEntry(string source, string message) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public void WriteEntry(string message, EventLogEntryType type, +// int eventID) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public static void WriteEntry(string source, string message, +// EventLogEntryType type) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public void WriteEntry(string message, EventLogEntryType type, +// int eventID, +// short category) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public static void WriteEntry(string source, string message, +// EventLogEntryType type, int eventID) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public void WriteEntry(string message, EventLogEntryType type, +// int eventID, +// short category, byte[] rawData) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public static void WriteEntry(string source, string message, +// EventLogEntryType type, int eventID, short category) +// { +// throw new NotImplementedException (); +// } +// +// [MonoTODO] +// public static void WriteEntry(string source, string message, +// EventLogEntryType type, int eventID, short category, +// byte[] rawData) +// { +// throw new NotImplementedException (); +// } + + public event EntryWrittenEventHandler EntryWritten; + } +} + |