Home > C# > TFS SDK: Field list

TFS SDK: Field list

Go to the TFS Content Page

You can access the list of fields from the WorkItemType using the FieldDefinitions properties, which is a collection of FieldDefinition.
The FieldDefinition define some properties like the Name, FieldType and other properties that define the behaviour of the field (CanSortBy, IsComputed, IsEditable, Isqueryable, etc).

WorkItemType wit = ...;
foreach (FieldDefinition fd in wit.FieldDefinitions)
   Debug.WriteLine(fd.Name + "\t" + fd.FieldType);
Categories: C#
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: