API Reference
Class
TaskDefinitionSpec
Minimal task definition for Exec-based tasks (single action) with basic triggers and principal.
Inheritance
- Object
- TaskDefinitionSpec
Constructors
public TaskDefinitionSpec() #Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public String Path { get; set; } #Full task path (folder + name), e.g., \MyTasks\Example.
public String Description { get; set; } #Optional description to store on the task.
public ExecActionSpec Action { get; set; } #Exec action to run.
public IReadOnlyList<TriggerSpec> Triggers { get; set; } #Zero or more triggers; when empty, the task is created without triggers.
public PrincipalSpec Principal { get; set; } #Optional principal information.
public Boolean Enabled { get; set; } #Whether the task is enabled after creation or update. Defaults to true.