TaskEvent Class

Historical event information for a task. This class wraps and extends the EventRecord class.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public sealed class TaskEvent : IComparable<TaskEvent>
Inheritance
Object    TaskEvent
Implements
IComparableTaskEvent

Remarks

For events on systems prior to Windows Vista, this class will only have information for the TaskPath, TimeCreated and EventId properties.

Properties

ActivityId Gets the activity id. This value is null for V1 events.
DataValues An indexer that gets the value of each of the data item values. This value is null for V1 events.
EventId Gets the event id.
EventRecord Gets the underlying EventRecord. This value is null for V1 events.
Level Gets the level. This value is null for V1 events.
OpCode Gets the op code. This value is null for V1 events.
ProcessId Gets the process id. This value is null for V1 events.
RecordId Gets the record id. This value is null for V1 events.
StandardEventId Gets the StandardTaskEventId from the EventId.
TaskCategory Gets the task category. This value is null for V1 events.
TaskPath Gets the task path.
TimeCreated Gets the time created.
UserId Gets the user id. This value is null for V1 events.
Version Gets the version. This value is null for V1 events.

Methods

CompareTo Compares the current object with another object of the same type.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetDataValue Gets the data value from the task specific event data item list.
Obsolete.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToString Returns a String that represents this instance.
(Overrides ObjectToString)

See Also