Export (0) Print
Expand All
Expand Minimize

EventLog Members (Visual J# Syntax)

Visual Studio .NET 2003

This topic shows Visual J# syntax for the .NET Framework library. For more information, click the link to the corresponding .NET Framework topic.

Declaration

/** @attribute System.ComponentModel.DesignerAttribute(DesignerBaseTypeName = "System.ComponentModel.Design.IDesigner", DesignerTypeName = "Microsoft.VisualStudio.Install.EventLogInstallableComponentDesigner, Microsoft.VisualStudio, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a") */
/** @attribute System.ComponentModel.DefaultEventAttribute(Name = "EntryWritten") */
/** @attribute System.ComponentModel.InstallerTypeAttribute(InstallerType = System.Diagnostics.EventLogInstaller) */
public class EventLog
   extends System.ComponentModel.Component
   implements System.ComponentModel.ISupportInitialize

Public Constructors

public EventLog();
public EventLog(
   System.String logName
);
public EventLog(
   System.String logName,
   System.String machineName
);
public EventLog(
   System.String logName,
   System.String machineName,
   System.String source
);

Public Properties

public boolean get_EnableRaisingEvents();
public void set_EnableRaisingEvents(
   boolean value
);
public System.Diagnostics.EventLogEntryCollection get_Entries();
public System.String get_Log();
public void set_Log(
   System.String value
);
public System.String get_LogDisplayName();
public System.String get_MachineName();
public void set_MachineName(
   System.String value
);
public System.String get_Source();
public void set_Source(
   System.String value
);
public System.ComponentModel.ISynchronizeInvoke get_SynchronizingObject();
public void set_SynchronizingObject(
   System.ComponentModel.ISynchronizeInvoke value
);

Public Methods

public final void BeginInit();
public void Clear();
public void Close();
public static void CreateEventSource(
   System.String source,
   System.String logName
);
public static void CreateEventSource(
   System.String source,
   System.String logName,
   System.String machineName
);
public static void Delete(
   System.String logName
);
public static void Delete(
   System.String logName,
   System.String machineName
);
public static void DeleteEventSource(
   System.String source
);
public static void DeleteEventSource(
   System.String source,
   System.String machineName
);
public final void EndInit();
public static boolean Exists(
   System.String logName
);
public static boolean Exists(
   System.String logName,
   System.String machineName
);
public static System.Diagnostics.EventLog[] GetEventLogs();
public static System.Diagnostics.EventLog[] GetEventLogs(
   System.String machineName
);
public static System.String LogNameFromSourceName(
   System.String source,
   System.String machineName
);
public static boolean SourceExists(
   System.String source
);
public static boolean SourceExists(
   System.String source,
   System.String machineName
);
public void WriteEntry(
   System.String message
);
public void WriteEntry(
   System.String message,
   System.Diagnostics.EventLogEntryType type
);
public static void WriteEntry(
   System.String source,
   System.String message
);
public void WriteEntry(
   System.String message,
   System.Diagnostics.EventLogEntryType type,
   int eventID
);
public static void WriteEntry(
   System.String source,
   System.String message,
   System.Diagnostics.EventLogEntryType type
);
public void WriteEntry(
   System.String message,
   System.Diagnostics.EventLogEntryType type,
   int eventID,
   short category
);
public static void WriteEntry(
   System.String source,
   System.String message,
   System.Diagnostics.EventLogEntryType type,
   int eventID
);
public void WriteEntry(
   System.String message,
   System.Diagnostics.EventLogEntryType type,
   int eventID,
   short category,
   ubyte[] rawData
);
public static void WriteEntry(
   System.String source,
   System.String message,
   System.Diagnostics.EventLogEntryType type,
   int eventID,
   short category
);
public static void WriteEntry(
   System.String source,
   System.String message,
   System.Diagnostics.EventLogEntryType type,
   int eventID,
   short category,
   ubyte[] rawData
);

Public Events

public void add_EntryWritten(
   System.Diagnostics.EntryWrittenEventHandler value
);
public void remove_EntryWritten(
   System.Diagnostics.EntryWrittenEventHandler value
);

Protected Methods

protected void Dispose(
   boolean disposing
);
Show:
© 2014 Microsoft