I am trying to get the fields from the Actions of a task, but I'm not finding how to access them.
Here is a small code sample:
Dim Actions As Microsoft.Win32.TaskScheduler.ActionCollection = myTask.Definition.Actions
For Each act As Microsoft.Win32.TaskScheduler.Action In Actions
If act.ActionType = Microsoft.Win32.TaskScheduler.TaskActionType.Execute Then
Dim args As String = ???
I have an Execute Action, and I want to get the arguments for the execute action, or the path, etc.
On the Email action, I would like to get the from, to, etc. How do I access those fields.