AllowedValuesCollection Class
Represents a list of valid values for a Field.
Inheritance Hierarchy
System.Object
Microsoft.TeamFoundation.WorkItemTracking.Common.ReadOnlyList
Microsoft.TeamFoundation.WorkItemTracking.Client.ValuesCollection
Microsoft.TeamFoundation.WorkItemTracking.Client.AllowedValuesCollection
Namespace: Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly: Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
Syntax
'Dichiarazione
Public NotInheritable Class AllowedValuesCollection _
Inherits ValuesCollection
public sealed class AllowedValuesCollection : ValuesCollection
public ref class AllowedValuesCollection sealed : public ValuesCollection
[<Sealed>]
type AllowedValuesCollection =
class
inherit ValuesCollection
end
public final class AllowedValuesCollection extends ValuesCollection
The AllowedValuesCollection type exposes the following members.
Properties
Name | Description | |
---|---|---|
Count | Gets the number of objects in this collection. (Inherited from ValuesCollection.) | |
IsFixedSize | Obsolete. (Inherited from ReadOnlyList.) | |
IsReadOnly | Obsolete. (Inherited from ReadOnlyList.) | |
IsSynchronized | Obsolete. (Inherited from ReadOnlyList.) | |
Item | Gets the value at the specified index in this collection. (Inherited from ValuesCollection.) | |
SyncRoot | Obsolete. (Inherited from ReadOnlyList.) |
Top
Methods
Name | Description | |
---|---|---|
Contains | Checks whether the specified value exists in this collection. (Inherited from ValuesCollection.) | |
CopyTo | Obsolete. (Inherited from ReadOnlyList.) | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator | (Inherited from ReadOnlyList.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetItem | (Inherited from ValuesCollection.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOf | Gets the index of the specified value in this collection. (Inherited from ValuesCollection.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IList.Add | (Inherited from ReadOnlyList.) | |
IList.Clear | (Inherited from ReadOnlyList.) | |
IList.Contains | (Inherited from ValuesCollection.) | |
ICollection.CopyTo | (Inherited from ReadOnlyList.) | |
ICollection.Count | (Inherited from ReadOnlyList.) | |
IList.IndexOf | (Inherited from ValuesCollection.) | |
IList.Insert | (Inherited from ReadOnlyList.) | |
IList.IsFixedSize | (Inherited from ReadOnlyList.) | |
IList.IsReadOnly | (Inherited from ReadOnlyList.) | |
ICollection.IsSynchronized | (Inherited from ReadOnlyList.) | |
IList.Item | (Inherited from ReadOnlyList.) | |
IList.Remove | (Inherited from ReadOnlyList.) | |
IList.RemoveAt | (Inherited from ReadOnlyList.) | |
ICollection.SyncRoot | (Inherited from ReadOnlyList.) |
Top
Remarks
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.