| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271 |
- //
- // System.Diagnostics.EventLog.cs
- //
- // Authors:
- // Jonathan Pryor ([email protected])
- //
- // (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;
- }
- }
|