_coreEventLog = coreEventLog;
}
- public event EntryWrittenEventHandler EntryWritten;
-
protected EventLog CoreEventLog {
get { return _coreEventLog; }
}
public string LogDisplayName {
get {
-#if NET_2_0
// to-do perform valid character checks
if (_coreEventLog.Log != null && _coreEventLog.Log.Length == 0) {
throw new InvalidOperationException ("Event log names must"
+ " consist of printable characters and cannot contain"
+ " \\, *, ?, or spaces.");
}
-#endif
if (_coreEventLog.Log != null) {
+ if (_coreEventLog.Log.Length == 0)
+ return string.Empty;
+
if (!EventLog.Exists (_coreEventLog.Log, _coreEventLog.MachineName)) {
throw new InvalidOperationException (string.Format (
CultureInfo.InvariantCulture, "Cannot find Log {0}"
return entries;
}
+ public abstract void DisableNotification ();
+
+ public abstract void EnableNotification ();
+
public abstract void BeginInit ();
public abstract void Clear ();
logName, machineName));
}
}
+
+ public abstract OverflowAction OverflowAction { get; }
+
+ public abstract int MinimumRetentionDays { get; }
+
+ public abstract long MaximumKilobytes { get; set; }
+
+ public abstract void ModifyOverflowPolicy (OverflowAction action, int retentionDays);
+
+ public abstract void RegisterDisplayName (string resourceFile, long resourceId);
}
}