Classe TestParameterCollection
Representa uma coleção de parâmetros de teste em um conjunto compartilhado de etapa, um caso de teste ou uma etapa de teste.
Hierarquia de herança
Object
ReadOnlyCollection<ITestParameter>
ReadOnlyObservableCollection<ITestParameter>
Microsoft.TeamFoundation.TestManagement.Client.TestParameterCollection
Namespace: Microsoft.TeamFoundation.TestManagement.Client
Assembly: Microsoft.TeamFoundation.TestManagement.Client (em Microsoft.TeamFoundation.TestManagement.Client.dll)
Sintaxe
'Declaração
Public Class TestParameterCollection _
Inherits ReadOnlyObservableCollection(Of ITestParameter)
public class TestParameterCollection : ReadOnlyObservableCollection<ITestParameter>
public ref class TestParameterCollection : public ReadOnlyObservableCollection<ITestParameter^>
type TestParameterCollection =
class
inherit ReadOnlyObservableCollection<ITestParameter>
end
public class TestParameterCollection extends ReadOnlyObservableCollection<ITestParameter>
O tipo TestParameterCollection expõe os membros a seguir.
Propriedades
Nome | Descrição | |
---|---|---|
Count | Gets the number of elements contained in the ReadOnlyCollection instance. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
Item(Int32) | Obtém o elemento no índice especificado. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
Item[String] | Obtém um parâmetro de teste da coleção conforme identificado pelo nome determinado parâmetro. | |
Items | Returns the IList that the ReadOnlyCollection wraps. (Herdado de ReadOnlyCollection<ITestParameter>.) |
Superior
Métodos
Nome | Descrição | |
---|---|---|
Contains | Determines whether an element is in the ReadOnlyCollection. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
ContainsKey | Retorna um valor que indica se um parâmetro que tenha o nome fornecido está localizado na coleção. | |
CopyTo | Copies the entire ReadOnlyCollection to a compatible one-dimensional Array, starting at the specified index of the target array. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
Equals | Determines whether the specified object is equal to the current object. (Herdado de Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Herdado de Object.) | |
FromXml | Lê essa coleção de XML. | |
GetEnumerator | Returns an enumerator that iterates through the ReadOnlyCollection. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
GetHashCode | Serves as the default hash function. (Substitui Object.GetHashCode.) | |
GetType | Gets the Type of the current instance. (Herdado de Object.) | |
IndexOf | Searches for the specified object and returns the zero-based index of the first occurrence within the entire ReadOnlyCollection. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Herdado de Object.) | |
OnCollectionChanged | Gerencie o evento de CollectionChanged usando os argumentos fornecidos. (Herdado de ReadOnlyObservableCollection<ITestParameter>.) | |
OnPropertyChanged | Gerencie o evento de PropertyChanged usando os argumentos fornecidos. (Herdado de ReadOnlyObservableCollection<ITestParameter>.) | |
ToString | Returns a string that represents the current object. (Herdado de Object.) | |
ToXml | Grava essa coleção XML. |
Superior
Eventos
Nome | Descrição | |
---|---|---|
CollectionChanged | Ocorre quando um item é adicionado ou removido. (Herdado de ReadOnlyObservableCollection<ITestParameter>.) | |
PropertyChanged | Ocorre quando um valor de propriedade é alterado. (Herdado de ReadOnlyObservableCollection<ITestParameter>.) |
Superior
Implementações explícitas da interface
Nome | Descrição | |
---|---|---|
System#Collections#Generic#ICollection{T}#Add | Adds an item to the ICollection.This implementation always throws NotSupportedException. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#IList#Add | Adds an item to the IList.This implementation always throws NotSupportedException. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#Generic#ICollection{T}#Clear | Removes all items from the ICollection.This implementation always throws NotSupportedException. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#IList#Clear | Removes all items from the IList.This implementation always throws NotSupportedException. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#Specialized#INotifyCollectionChanged#CollectionChanged | Ocorre quando a coleção é alterado. (Herdado de ReadOnlyObservableCollection<ITestParameter>.) | |
System#Collections#IList#Contains | Determines whether the IList contains a specific value. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#ICollection#CopyTo | Copies the elements of the ICollection to an Array, starting at a particular Array index. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#IEnumerable#GetEnumerator | Returns an enumerator that iterates through a collection. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#IList#IndexOf | Determines the index of a specific item in the IList. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#Generic#IList{T}#Insert | Inserts an item to the IList at the specified index.This implementation always throws NotSupportedException. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#IList#Insert | Inserts an item to the IList at the specified index.This implementation always throws NotSupportedException. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#IList#IsFixedSize | Gets a value indicating whether the IList has a fixed size. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#Generic#ICollection{T}#IsReadOnly | Gets a value indicating whether the ICollection is read-only. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#IList#IsReadOnly | Gets a value indicating whether the IList is read-only. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#ICollection#IsSynchronized | Gets a value indicating whether access to the ICollection is synchronized (thread safe). (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#Generic#IList{T}#Item | Obtém o elemento no índice especificado.An NotSupportedException occurs if you try to set the item at the specified index. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#IList#Item | Obtém o elemento no índice especificado.A NotSupportedException occurs if you try to set the item at the specified index. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#ComponentModel#INotifyPropertyChanged#PropertyChanged | Ocorre quando um valor de propriedade é alterado. (Herdado de ReadOnlyObservableCollection<ITestParameter>.) | |
System#Collections#Generic#ICollection{T}#Remove | Removes the first occurrence of a specific object from the ICollection.This implementation always throws NotSupportedException. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#IList#Remove | Removes the first occurrence of a specific object from the IList.This implementation always throws NotSupportedException. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#Generic#IList{T}#RemoveAt | Removes the IList item at the specified index.This implementation always throws NotSupportedException. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#IList#RemoveAt | Removes the IList item at the specified index.This implementation always throws NotSupportedException. (Herdado de ReadOnlyCollection<ITestParameter>.) | |
System#Collections#ICollection#SyncRoot | Gets an object that can be used to synchronize access to the ICollection. (Herdado de ReadOnlyCollection<ITestParameter>.) |
Superior
Comentários
A coleção não pode ser modificada, mas os parâmetros podem ser modificados.
Acesso thread-safe
Quaisquer membros estático (Shared no Visual Basic) públicos deste tipo são thread-safe. Não há garantia de que qualquer membro de instância seja thread-safe.