//
using System.ComponentModel;
-#if NET_2_0
using System.Runtime.InteropServices;
-#endif
using System.Runtime.Serialization;
using System.Security.Permissions;
private DateTime timeGenerated;
private DateTime timeWritten;
private string userName;
-#if NET_2_0
private long instanceId;
-#endif
internal EventLogEntry (string category, short categoryNumber, int index,
int eventID, string source, string message, string userName,
this.timeGenerated = timeGenerated;
this.timeWritten = timeWritten;
this.userName = userName;
-#if NET_2_0
this.instanceId = instanceId;
-#endif
}
[MonoTODO]
get { return entryType; }
}
-#if NET_2_0
[Obsolete ("Use InstanceId")]
-#endif
[MonitoringDescription ("An ID number for this event entry.")]
public int EventID {
get { return eventID; }
get { return index; }
}
-#if NET_2_0
[ComVisible (false)]
+ [MonitoringDescription ("The instance ID for this event entry.")]
public long InstanceId {
get { return instanceId; }
}
-#endif
[MonitoringDescription ("The Computer on which this event entry occured.")]
public string MachineName {