You will get a TaskFolder instance for the folder in which you want to place the task, and then call the RegisterTask method setting the second parameter to the XML text string that contains the task's definition in the schema defined at https://msdn.microsoft.com/en-us/library/windows/desktop/aa383609(v=vs.85).aspx.
↧