EventLog
using System.ComponentModel;
namespace System.Diagnostics
{
[DefaultEvent("EntryWritten")]
public class EventLog : Component, ISupportInitialize
{
[Browsable(false)]
[DefaultValue(false)]
public bool EnableRaisingEvents {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
set {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public EventLogEntryCollection Entries {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
[DefaultValue("")]
[ReadOnly(true)]
[SettingsBindable(true)]
public string Log {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
set {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
[Browsable(false)]
public string LogDisplayName {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
[DefaultValue(".")]
[ReadOnly(true)]
[SettingsBindable(true)]
public string MachineName {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
set {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public long MaximumKilobytes {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
set {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
[Browsable(false)]
public int MinimumRetentionDays {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
[Browsable(false)]
public OverflowAction OverflowAction {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
[DefaultValue("")]
[ReadOnly(true)]
[SettingsBindable(true)]
public string Source {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
set {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
[Browsable(false)]
[DefaultValue(null)]
public ISynchronizeInvoke SynchronizingObject {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
set {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
public event EntryWrittenEventHandler EntryWritten {
add {
}
remove {
}
}
public EventLog()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public EventLog(string logName)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public EventLog(string logName, string machineName)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public EventLog(string logName, string machineName, string source)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public void BeginInit()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public void Clear()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public void Close()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static void CreateEventSource(EventSourceCreationData sourceData)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static void CreateEventSource(string source, string logName)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
[Obsolete("This method has been deprecated. Please use System.Diagnostics.EventLog.CreateEventSource(EventSourceCreationData sourceData) instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public static void CreateEventSource(string source, string logName, string machineName)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static void Delete(string logName)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static void Delete(string logName, string machineName)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static void DeleteEventSource(string source)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static void DeleteEventSource(string source, string machineName)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
protected override void Dispose(bool disposing)
{
}
public void EndInit()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static bool Exists(string logName)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static bool Exists(string logName, string machineName)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static EventLog[] GetEventLogs()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static EventLog[] GetEventLogs(string machineName)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static string LogNameFromSourceName(string source, string machineName)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public void ModifyOverflowPolicy(OverflowAction action, int retentionDays)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public void RegisterDisplayName(string resourceFile, long resourceId)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static bool SourceExists(string source)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static bool SourceExists(string source, string machineName)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public void WriteEntry(string message)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public void WriteEntry(string message, EventLogEntryType type)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public void WriteEntry(string message, EventLogEntryType type, int eventID)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public void WriteEntry(string message, EventLogEntryType type, int eventID, short category)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public void WriteEntry(string message, EventLogEntryType type, int eventID, short category, byte[] rawData)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static void WriteEntry(string source, string message)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static void WriteEntry(string source, string message, EventLogEntryType type)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static void WriteEntry(string source, string message, EventLogEntryType type, int eventID)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static void WriteEntry(string source, string message, EventLogEntryType type, int eventID, short category)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static void WriteEntry(string source, string message, EventLogEntryType type, int eventID, short category, byte[] rawData)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public void WriteEvent(EventInstance instance, byte[] data, params object[] values)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public void WriteEvent(EventInstance instance, params object[] values)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static void WriteEvent(string source, EventInstance instance, byte[] data, params object[] values)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public static void WriteEvent(string source, EventInstance instance, params object[] values)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
}