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.10.1
Syntax
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 methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetDataValue Obsolete.
Gets the data value from the task specific event data item list.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates 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