TestCategoryItemCollection Class

Represents a collection of strings that categorize a test.

System.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)

[SerializableAttribute]
public sealed class TestCategoryItemCollection : EqtBaseCollection<TestCategoryItem>

The TestCategoryItemCollection type exposes the following members.

  NameDescription
Public methodTestCategoryItemCollection()Initializes a new instance of the TestCategoryItemCollection class.
Public methodTestCategoryItemCollection(String[])Initializes a new instance of the TestCategoryItemCollection class by using the provided array of category names.
Public methodTestCategoryItemCollection(TestCategoryItemCollection)Initializes a new instance of the TestCategoryItemCollection class by using the items in the provided collection.
Top

  NameDescription
Public propertyCountGets the number of items in the collection. (Inherited from EqtBaseCollection<T>.)
Public propertyIsReadOnlyGets a value that indicates whether the collection is read-only. (Inherited from EqtBaseCollection<T>.)
Top

  NameDescription
Public methodAdd(String)Adds the provided test category name to the collection.
Public methodAdd(TestCategoryItem)Adds the provided test category item to the collection. (Overrides EqtBaseCollection<T>.Add(T).)
Public methodClearClears all items from the collection. (Inherited from EqtBaseCollection<T>.)
Public methodCloneCreates a copy of the collection. (Inherited from EqtBaseCollection<T>.)
Public methodContainsReturns a value that indicates whether the provided item is already in the collection. (Inherited from EqtBaseCollection<T>.)
Public methodCopyToCopies all items in the collection to the provided array, starting with the provided index. (Inherited from EqtBaseCollection<T>.)
Public methodEqualsDetermines whether the provided object is equal to the current test category collection object. (Overrides Object.Equals(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 methodGetEnumeratorReturns an IEnumerator object for iterating through the collection. (Inherited from EqtBaseCollection<T>.)
Public methodGetHashCodeServes as a hash function for a particular type. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodLoadLoads the current object from the provided XML element by using the provided parameters. (Inherited from EqtBaseCollection<T>.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRemoveRemoves the provided item from the collection, if the item exists. (Inherited from EqtBaseCollection<T>.)
Public methodSaveSaves the current object to the provided XML element using the provided parameters. (Inherited from EqtBaseCollection<T>.)
Public methodToArrayReturns this object as an array of the test category names.
Public methodToStringReturns the contents of this collection as a comma-delimited string of test category names. (Overrides Object.ToString().)
Top

  NameDescription
Protected fieldm_containerInfrastructure. Returns the hash table that contains the collection. (Inherited from EqtBaseCollection<T>.)
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.

Community Additions

ADD
Show: