// Fill out a TaskDefinition as per examples and documentation
TaskDefinition taskDef = ts.NewTask();
// Add things to TaskDefinition like settings, triggers and actions
// Get a reference to the subfolder
TaskFolder myFolder = ts.RootFolder.SubFolders["MyFolder"];
// Register the task in the subfolder
myFolder.RegisterTaskDefinition("MyTask", taskDef);
↧
New Post: Create Task in Specific Folder
↧