EventLogEntry
Encapsulates a single record in the event log. This class cannot be inherited.
using System.ComponentModel;
using System.Runtime.Serialization;
namespace System.Diagnostics
{
[DesignTimeVisible(false)]
[ToolboxItem(false)]
public sealed class EventLogEntry : Component, ISerializable
{
public string Category {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
public short CategoryNumber {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
public byte[] Data {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
public EventLogEntryType EntryType {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
[Obsolete("EventLogEntry.EventID has been deprecated. Use System.Diagnostics.EventLogEntry.InstanceId instead.")]
public int EventID {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
public int Index {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
public long InstanceId {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
public string MachineName {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
[Editor("System.ComponentModel.Design.BinaryEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public string Message {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
public string[] ReplacementStrings {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
public string Source {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
public DateTime TimeGenerated {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
public DateTime TimeWritten {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
public string UserName {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
internal EventLogEntry()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
public bool Equals(EventLogEntry otherEntry)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog);
}
}
}