TaskDefinition has an Xml property which can be saved to a file and then used by the TaskFolder.ImportTask method to import and register or it can be brought into a string and used to set the same Xml property at a later time. The reason the Task object is null is because the task has not yet been registered.
↧