Sample Code: Create a Work Item in Team Foundation
You can create bugs, tasks, and other types of WorkItems by performing the following steps:
Construct a WorkItem.
Set the values of the required fields.
Save the WorkItem.
Depending on the type of WorkItem that you create, most required Fields have default values.


