ScheduledTaskIdAttribute reference
The ScheduledTaskIdAttribute is an attribute that should be applied to a scheduled task extension class to specify its unique identifier.

Properties
ScheduledTaskId
A unique identifier for the scheduled task.
Constructor
Initializes a new instance of the ScheduledTaskIdAttribute class by passing a non-null, non-empty string that serves as the unique identifier for the scheduled task.
Usage
Apply this attribute to a class that inherits from ScheduledTaskExtension to define the scheduled task's unique ID.
[ScheduledTaskId("MyCustomTask")]
public class MyCustomTask : ScheduledTaskExtension
{
    // Task logic here...
}