Represents a collection of strings that categorize a test.
Inheritance Hierarchy
Object
  Microsoft.VisualStudio.TestTools.Common.EqtBaseCollection<TestCategoryItem>
    Microsoft.VisualStudio.TestTools.Common.TestCategoryItemCollection
Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public NotInheritable Class TestCategoryItemCollection _
    Inherits EqtBaseCollection(Of TestCategoryItem)
[SerializableAttribute]
public sealed class TestCategoryItemCollection : EqtBaseCollection<TestCategoryItem>
[SerializableAttribute]
public ref class TestCategoryItemCollection sealed : public EqtBaseCollection<TestCategoryItem^>
[<Sealed>]
[<SerializableAttribute>]
type TestCategoryItemCollection =  
    class 
        inherit EqtBaseCollection<TestCategoryItem>
    end
public final class TestCategoryItemCollection extends EqtBaseCollection<TestCategoryItem>
The TestCategoryItemCollection type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | TestCategoryItemCollection() | Initializes a new instance of the TestCategoryItemCollection class. | 
| .gif) | TestCategoryItemCollection(array<String[]) | Initializes a new instance of the TestCategoryItemCollection class by using the provided array of category names. | 
| .gif) | TestCategoryItemCollection(TestCategoryItemCollection) | Initializes a new instance of the TestCategoryItemCollection class by using the items in the provided collection. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | Count | Gets the number of items in the collection. (Inherited from EqtBaseCollection<T>.) | 
| .gif) | IsReadOnly | Gets a value that indicates whether the collection is read-only. (Inherited from EqtBaseCollection<T>.) | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Add(String) | Adds the provided test category name to the collection. | 
| .gif) | Add(TestCategoryItem) | Adds the provided test category item to the collection. (Overrides EqtBaseCollection<T>.Add(T).) | 
| .gif) | Clear | Clears all items from the collection. (Inherited from EqtBaseCollection<T>.) | 
| .gif) | Clone | Creates a copy of the collection. (Inherited from EqtBaseCollection<T>.) | 
| .gif) | Contains | Returns a value that indicates whether the provided item is already in the collection. (Inherited from EqtBaseCollection<T>.) | 
| .gif) | CopyTo | Copies all items in the collection to the provided array, starting with the provided index. (Inherited from EqtBaseCollection<T>.) | 
| .gif) | Equals | Determines whether the provided object is equal to the current test category collection object. (Overrides Object.Equals(Object).) | 
| .gif) | GetEnumerator | Returns an IEnumerator object for iterating through the collection. (Inherited from EqtBaseCollection<T>.) | 
| .gif) | GetHashCode | Serves as the default hash function. (Overrides Object.GetHashCode.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | Load | Loads the current object from the provided XML element by using the provided parameters. (Inherited from EqtBaseCollection<T>.) | 
| .gif) | Remove | Removes the provided item from the collection, if the item exists. (Inherited from EqtBaseCollection<T>.) | 
| .gif) | Save | Saves the current object to the provided XML element using the provided parameters. (Inherited from EqtBaseCollection<T>.) | 
| .gif) | ToArray | Returns this object as an array of the test category names. | 
| .gif) | ToString | Returns the contents of this collection as a comma-delimited string of test category names. (Overrides Object.ToString.) | 
Top
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| .gif) .gif) | IEnumerable<T>.GetEnumerator | Returns a typed IEnumerator. (Inherited from EqtBaseCollection<T>.) | 
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.