Click or drag to resize
Task Scheduler Managed Class Library

TaskEvent Class

Historical event information for a task. This class wraps and extends the EventRecord class.
Inheritance Hierarchy
SystemObject
  Microsoft.Win32.TaskSchedulerTaskEvent

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
public sealed class TaskEvent : IComparable<TaskEvent>
Request Example View Source

The TaskEvent type exposes the following members.

Properties
 NameDescription
Public propertyActivityId Gets the activity id. This value is null for V1 events.
Public propertyDataValues An indexer that gets the value of each of the data item values. This value is null for V1 events.
Public propertyEventId Gets the event id.
Public propertyEventRecord Gets the underlying EventRecord. This value is null for V1 events.
Public propertyLevel Gets the level. This value is null for V1 events.
Public propertyOpCode Gets the op code. This value is null for V1 events.
Public propertyProcessId Gets the process id. This value is null for V1 events.
Public propertyRecordId Gets the record id. This value is null for V1 events.
Public propertyStandardEventId Gets the StandardTaskEventId from the EventId.
Public propertyTaskCategory Gets the task category. This value is null for V1 events.
Public propertyTaskPath Gets the task path.
Public propertyTimeCreated Gets the time created.
Public propertyUserId Gets the user id. This value is null for V1 events.
Public propertyVersion Gets the version. This value is null for V1 events.
Top
Methods
 NameDescription
Public methodCompareTo Compares the current object with another object of the same type.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetDataValueObsolete.
Gets the data value from the task specific event data item list.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToString Returns a String that represents this instance.
(Overrides ObjectToString)
Top
Remarks
For events on systems prior to Windows Vista, this class will only have information for the TaskPath, TimeCreated and EventId properties.
See Also