ItemCollection<T> Class

A named item collection.

Item names must be unique (compared with case insensitive comparer) throughout the collection.

System.Object
  Microsoft.TeamFoundation.Warehouse.ItemCollection<T>

Namespace:  Microsoft.TeamFoundation.Warehouse
Assembly:  Microsoft.TeamFoundation.Warehouse (in Microsoft.TeamFoundation.Warehouse.dll)

public class ItemCollection<T> : IEnumerable<T>, 
	IEnumerable 
where T : NamedItem

Type Parameters

T

The ItemCollection<T> type exposes the following members.

  NameDescription
Public propertyCount
Public propertyItem
Top

  NameDescription
Public methodAdd(Object)Add an item to the collection. This method is required for serialization.
Public methodAdd(T)Add an item to the collection. Throws if a field that has the same name has already been added.
Public methodAddRangeAdd a collection of items. If this throws the collection will have all the values added up to when it threw.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEnumerator
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRemove
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTryGetValue
Top

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: