Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

New Post: Get unique id for task

$
0
0
Is there a property that gives a unique ID for a specific task? Specifically of type Microsoft.Win32.TaskScheduler.Task.
Using ts As New TaskService()

            Dim taskArr As IEnumerable(Of Task) = ts.AllTasks

            For Each task As Task In taskArr
                              'Get unique ID here. Does something like the following exist?
                               Console.WriteLine(task.GetUniqueID())
            Next

End Using
My goal is to go through the tasks and save the information to a database with a unique identifier. That way if the task name changes or any other information about it, I can still connect it with my table in the database.

Is this possible?

Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>