This documentation is archived and is not being maintained.

AllowedValuesCollection Class

Represents a list of valid values for a Field.

Namespace:  Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly:  Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)

public ref class AllowedValuesCollection sealed : public ValuesCollection

The AllowedValuesCollection type exposes the following members.

  NameDescription
Public propertyCountGets the number of objects in this collection. (Inherited from ValuesCollection.)
Public propertyIsFixedSize Obsolete. (Inherited from ReadOnlyList.)
Public propertyIsReadOnly Obsolete. (Inherited from ReadOnlyList.)
Public propertyIsSynchronized Obsolete. (Inherited from ReadOnlyList.)
Public propertyItemGets the value at the specified index in this collection. (Inherited from ValuesCollection.)
Public propertySyncRoot Obsolete. (Inherited from ReadOnlyList.)
Top

  NameDescription
Public methodContainsChecks whether the specified value exists in this collection. (Inherited from ValuesCollection.)
Public methodCopyTo Obsolete. (Inherited from ReadOnlyList.)
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetEnumerator (Inherited from ReadOnlyList.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIndexOfGets the index of the specified value in this collection. (Inherited from ValuesCollection.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The AllowedValuesCollection object is stored by the Field::AllowedValues and FieldDefinition::AllowedValues properties. The list of valid values for a field is determined by its FieldDefinition.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: