Condividi tramite


Interfaccia ITestObjectCollection<TObjectInterface>

Questa API supporta l'infrastruttura .NET Framework e non deve essere utilizzata direttamente dal codice.

Rappresenta l'interfaccia di base per le raccolte di oggetti gestione test.

Spazio dei nomi:  Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

Sintassi

'Dichiarazione
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 non supporta i tipi o i metodi generici.

Parametri di tipo

  • TObjectInterface
    Un oggetto di gestione test Type.

Il tipo ITestObjectCollection<TObjectInterface> espone i seguenti membri.

Proprietà

  Nome Descrizione
Proprietà pubblica Count Ottiene il numero di elementi contenuti in ICollection<T>. (Ereditato da ICollection<TObjectInterface>)
Proprietà pubblica IsReadOnly ottiene un valore che indica se ICollection<T> è di sola lettura. (Ereditato da ICollection<TObjectInterface>)
Proprietà pubblica Item Ottiene o imposta l'elemento all'indice specificato. (Ereditato da IList<TObjectInterface>)
Proprietà pubblica SyncRoot Ottiene un oggetto che può essere utilizzato per sincronizzare l'accesso alla raccolta.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Add Aggiunge un elemento a ICollection<T>. (Ereditato da ICollection<TObjectInterface>)
Metodo pubblico Clear Rimuove tutti gli elementi da ICollection<T>. (Ereditato da ICollection<TObjectInterface>)
Metodo pubblico Contains determina se ICollection<T> contiene un valore specifico. (Ereditato da ICollection<TObjectInterface>)
Metodo pubblico CopyTo Copia gli elementi di ICollection<T> in Array, l'avvio a un particolare Array indice. (Ereditato da ICollection<TObjectInterface>)
Metodo pubblico GetEnumerator Restituisce un enumeratore che scorre la raccolta. (Ereditato da IEnumerable<TObjectInterface>)
Metodo pubblico IndexOf Determina indice di un elemento specifico in IList<T>. (Ereditato da IList<TObjectInterface>)
Metodo pubblico Insert Inserisce un elemento a IList<T> all'indice specificato. (Ereditato da IList<TObjectInterface>)
Metodo pubblico Move Sposta l'elemento della raccolta da una posizione a un'altra.
Metodo pubblico Remove Rimuove la prima occorrenza di un oggetto specifico da ICollection<T>. (Ereditato da ICollection<TObjectInterface>)
Metodo pubblico RemoveAt rimuove IList<T> elemento all'indice specificato. (Ereditato da IList<TObjectInterface>)

In alto

Eventi

  Nome Descrizione
Evento pubblico CollectionChanged Si verifica quando la raccolta. (Ereditato da INotifyCollectionChanged)
Evento pubblico PropertyChanged Viene generato quando il valore di una proprietà cambia. (Ereditato da INotifyPropertyChanged)

In alto

Vedere anche

Riferimenti

Spazio dei nomi Microsoft.TeamFoundation.TestManagement.Client

INotifyCollectionChanged

INotifyPropertyChanged