CategoryCollection Class

A collection of category objects.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.WorkItemTracking.Client.CategoryCollection

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

Syntax

'Declaration
Public NotInheritable Class CategoryCollection _
    Implements IEnumerable(Of Category), IEnumerable
public sealed class CategoryCollection : IEnumerable<Category>, 
    IEnumerable
public ref class CategoryCollection sealed : IEnumerable<Category^>, 
    IEnumerable
[<Sealed>]
type CategoryCollection =  
    class 
        interface IEnumerable<Category>
        interface IEnumerable 
    end
public final class CategoryCollection implements IEnumerable<Category>, IEnumerable

The CategoryCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of category objects in this collection.
Public property Item[Int32] Gets the category object at the specified index in this collection.
Public property Item[String] Gets the category in this collection that has the specified name.

Top

Methods

  Name Description
Public method Contains Checks whether this collection contains a category that has the specified name.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Export Exports the entire collection to an XML-formatted document.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Import(String) Imports categories from the specified XML-formatted string.
Public method Import(XmlElement) Imports categories from the specified XML document.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event ImportEventHandler Event handler for events that occur during an import.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable<Category>.GetEnumerator Gets an enumerator for this collection.
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Gets an enumerator for this collection.

Top

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.

See Also

Reference

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace