The only way I can think of is to create tables that match the properties of Task, TaskDescription, TaskSettings, TaskRegistrationInfo, TaskPrincipal, Trigger (and each derivative that might be used), and Action (and each derivative that might be used), and then loop through the properties using reflection to pull the values and push them into the tables. Needless to say, a lot of work. I would seriously consider using the Xml if you can or at least something a little more fungible like JSON, though this would be a lot of work too.
↧