Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Field Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents a field in a WorkItem.

System.Object
  Microsoft.TeamFoundation.WorkItemTracking.Client.Field

Namespace:  Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly:  Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
public sealed class Field

The Field type exposes the following members.

  NameDescription
Public propertyAllowedValuesGets a collection of values that are valid for this field.
Public propertyFieldDefinitionGets the FieldDefinition that defines this field.
Public propertyHasAllowedValuesListGets a flag that indicates whether a list of allowed values is available for this field.
Public propertyHasPatternMatchGets a flag that indicates whether the value of this field must match a pattern.
Public propertyIdGets the ID of this field.
Public propertyIsChangedByUser
Public propertyIsComputedGets a flag that indicates whether the value of this field is computed from the values of other fields.
Public propertyIsDirtyGets a flag that indicates whether the value of this field has unsaved changes.
Public propertyIsEditableGets a flag that indicates whether the value of this field can be edited in the current state of the work item.
Public propertyIsLimitedToAllowedValuesGets a flag that indicates whether this field is restricted to a collection of allowed values.
Public propertyIsRequiredGets a flag that indicates whether this field requires a value.
Public propertyIsValidGets a flag that indicates whether the value of the field is valid based on rules.
Public propertyNameGets the name of this field.
Public propertyOriginalValueGets the value of this field as it existed when the work item was saved most recently.
Public propertyProhibitedValuesGets the list of values that are not allowed for this field.
Public propertyReferenceNameGets the reference name of this field.
Public propertyStatusGets a description of the current state of this field.
Public propertyValueGets or sets the current value of this field.
Public propertyWorkItemGets the WorkItem that contains this field.
Top
  NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

A field is the data container in a WorkItem. Each field in a WorkItem has a unique ID number.

You define the rules that govern a field (for example, computer values or pattern matching) in the WorkItemType.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.