Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Work Item Object Model sample includes seven different projects, each of which creates one console application. Each console application shows the individual parts of the Work Item Object Model.
Attachments
Linking
Query
StoredQuery
WorkItemEdit
WorkItemNew
WorkItemType
You will find two solution files. One is C# and the other is Visual Basic. Each language offers the same functionality.
To build all the projects
In the Sample Browser, right click C# Example.UsingTheWorkItemObjectModel and choose Open in VS.
Press F5 to build the sample.
To see each console application
At the command prompt, type the name of the console application you wish to run.
Attachments
Linking
Query
StoredQuery
WorkItemEdit
WorkItemNew
WorkItemType
Requirements
Team Foundation Server installation and the name of the server.
A computer that has Visual Studio installed.
A computer that has Team Explorer installed.
Demonstrates
Attachments Project
Main() |
|
OnFieldChanged() |
|
OutputAttachments() |
|
GetServer() |
|
Linking
Main() |
|
OutputLinks() |
|
GetServer() |
|
Query Project
Main() |
|
GetServer() |
|
StoredQuery Project
Main() |
|
GetServer() |
|
WorkItemEdit Project
Main() |
|
IsDisplayField() |
|
GetServer() |
|
WorkItemNew Project
Main() |
|
IsDisplayField() |
|
GetServer() |
|
WorkItemType Project
Main() |
|
GetServer() |
|