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
声明
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 | |
|---|---|---|
| .gif) | Count | Gets the number of category objects in this collection. | 
| .gif) | Item[Int32] | Gets the category object at the specified index in this collection. | 
| .gif) | Item[String] | Gets the category in this collection that has the specified name. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Contains | Checks whether this collection contains a category that has the specified name. | 
| .gif) | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | 
| .gif) | Export | Exports the entire collection to an XML-formatted document. | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | Import(String) | Imports categories from the specified XML-formatted string. | 
| .gif) | Import(XmlElement) | Imports categories from the specified XML document. | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | ToString | Returns a string that represents the current object. (Inherited from Object.) | 
Top
Events
| Name | Description | |
|---|---|---|
| .gif) | ImportEventHandler | Event handler for events that occur during an import. | 
Top
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| .gif) .gif) | IEnumerable<Category>.GetEnumerator | Gets an enumerator for this collection. | 
| .gif) .gif) | 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.