Editing a Work Item using Property Pages
You can edit the properties of a work item by using the graphic user interface provided by the Task Scheduler Service. (Currently, the only valid work items are tasks.)
The following procedure describes how to edit a task using its property pages.
To edit a task using its property pages
- Call CoInitialize to initialize the COM library and CoCreateInstance to get a Task Scheduler object. (These examples assume that the Task Scheduler service is running.)
- Call ITaskScheduler::Activate to get the ITask interface of the task object. (Note that tasks are currently the only valid type of work item.)
- Call IScheduledWorkItem::EditWorkItem to display the property pages for the task.
- Edit the properties of the task as needed, then click OK to accept the new values and remove the displayed property pages.
For a code example of | See |
---|---|
Displaying the property pages for a known task and allowing a user to edit the properties of the work item | C/C++ Code Example: Editing a Work Item |
Related topics
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για