Compartir a través de


ITestObjectCollection<TObjectInterface> (Interfaz)

Esta API es compatible con la infraestructura de .NET Framework y no está diseñada para utilizarse directamente desde el código.

Representa la interfaz base para colecciones de objetos de administración de pruebas.

Espacio de nombres:  Microsoft.TeamFoundation.TestManagement.Client
Ensamblado:  Microsoft.TeamFoundation.TestManagement.Client (en Microsoft.TeamFoundation.TestManagement.Client.dll)

Sintaxis

'Declaración
Public Interface ITestObjectCollection(Of TObjectInterface) _
    Inherits IList(Of TObjectInterface), ICollection(Of TObjectInterface),  _
    IEnumerable(Of TObjectInterface), IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
public interface ITestObjectCollection<TObjectInterface> : IList<TObjectInterface>, 
    ICollection<TObjectInterface>, IEnumerable<TObjectInterface>, 
    IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
generic<typename TObjectInterface>
public interface class ITestObjectCollection : IList<TObjectInterface>, 
    ICollection<TObjectInterface>, IEnumerable<TObjectInterface>, 
    IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
type ITestObjectCollection<'TObjectInterface> =  
    interface
        interface IList<'TObjectInterface>
        interface ICollection<'TObjectInterface>
        interface IEnumerable<'TObjectInterface>
        interface IEnumerable
        interface INotifyCollectionChanged
        interface INotifyPropertyChanged
    end
JScript no admite el uso de métodos ni tipos genéricos.

Parámetros de tipo

  • TObjectInterface
    Type de un objeto de administración de pruebas.

El tipo ITestObjectCollection<TObjectInterface> expone los siguientes miembros.

Propiedades

  Nombre Descripción
Propiedad pública Count Obtiene el número de elementos incluidos en ICollection<T>. (Se hereda de ICollection<TObjectInterface>).
Propiedad pública IsReadOnly Obtiene un valor que indica si ICollection<T> es de solo lectura. (Se hereda de ICollection<TObjectInterface>).
Propiedad pública Item Obtiene o establece el elemento que se encuentra en el índice especificado. (Se hereda de IList<TObjectInterface>).
Propiedad pública SyncRoot Obtiene un objeto que se puede utilizar para sincronizar el acceso a la colección.

Arriba

Métodos

  Nombre Descripción
Método público Add Agrega un elemento a ICollection<T>. (Se hereda de ICollection<TObjectInterface>).
Método público Clear Quita todos los elementos de ICollection<T>. (Se hereda de ICollection<TObjectInterface>).
Método público Contains Determina si ICollection<T> contiene un valor específico. (Se hereda de ICollection<TObjectInterface>).
Método público CopyTo Copia los elementos de la interfaz ICollection<T> a un objeto Array, a partir de un índice determinado de la clase Array. (Se hereda de ICollection<TObjectInterface>).
Método público GetEnumerator() Devuelve un enumerador que recorre en iteración la colección. (Se hereda de IEnumerable<TObjectInterface>).
Método público GetEnumerator() Devuelve un enumerador que recorre en iteración una colección. (Se hereda de IEnumerable).
Método público IndexOf Determina el índice de un elemento específico de IList<T>. (Se hereda de IList<TObjectInterface>).
Método público Insert Inserta un elemento en IList<T>, en el índice especificado. (Se hereda de IList<TObjectInterface>).
Método público Move Mueve el elemento de la colección de una posición a otra.
Método público Remove Quita la primera aparición de un objeto específico de ICollection<T>. (Se hereda de ICollection<TObjectInterface>).
Método público RemoveAt Quita el elemento de IList<T> en el índice especificado. (Se hereda de IList<TObjectInterface>).

Arriba

Eventos

  Nombre Descripción
Evento público CollectionChanged Se produce cuando cambia la colección. (Se hereda de INotifyCollectionChanged).
Evento público PropertyChanged Se produce cuando cambia el valor de una propiedad. (Se hereda de INotifyPropertyChanged).

Arriba

Vea también

Referencia

Microsoft.TeamFoundation.TestManagement.Client (Espacio de nombres)

INotifyCollectionChanged

INotifyPropertyChanged