8 private int _categoryNumber;
12 private long _instanceId;
21 return _categoryNumber;
25 if (value > 65535 || value < 0)
29 _categoryNumber = value;
63 if (value > uint.MaxValue || value < 0)
91 : this(instanceId, categoryId)
int CategoryId
Gets or sets the resource identifier that specifies the application-defined category of the event ent...
EventLogEntryType
Specifies the event type of an event log entry.
The exception that is thrown when the value of an argument is outside the allowable range of values a...
Represents language-neutral information for an event log entry.
long InstanceId
Gets or sets the resource identifier that designates the message text of the event entry.
The exception thrown when using invalid arguments that are enumerators.
EventInstance(long instanceId, int categoryId)
Initializes a new instance of the T:System.Diagnostics.EventInstance class using the specified resour...
static bool IsDefined(Type enumType, object value)
Returns an indication whether a constant with a specified value exists in a specified enumeration.
Provides the base class for enumerations.
EventInstance(long instanceId, int categoryId, EventLogEntryType entryType)
Initializes a new instance of the T:System.Diagnostics.EventInstance class using the specified resour...
EventLogEntryType EntryType
Gets or sets the event type of the event log entry.