다음을 통해 공유


IReadOnlyObservableSet<T> Interface

Provides a homogeneous collection of objects of type T.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.Immutable.11.0 (in Microsoft.VisualStudio.Shell.Immutable.11.0.dll)

Syntax

‘선언
Public Interface IReadOnlyObservableSet(Of T) _
    Inherits IReadOnlyObservableSet, INotifyCollectionChanged, IEnumerable(Of T),  _
    IEnumerable
public interface IReadOnlyObservableSet<T> : IReadOnlyObservableSet, 
    INotifyCollectionChanged, IEnumerable<T>, IEnumerable

Type Parameters

  • T
    The type of items stored in the set.

The IReadOnlyObservableSet<T> type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of elements contained in the IReadOnlyObservableSet. (Inherited from IReadOnlyObservableSet.)

Top

Methods

  Name Description
Public method Contains(Object) Determines whether the IReadOnlyObservableSet contains a specific value. (Inherited from IReadOnlyObservableSet.)
Public method Contains(T) Determines whether the IReadOnlyObservableSet<T> contains a specific value.
Public method GetEnumerator() Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<T>.)
Public method GetEnumerator() Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.)

Top

Events

  Name Description
Public event CollectionChanged Occurs when the collection changes. (Inherited from INotifyCollectionChanged.)

Top

Remarks

This interface is used by the ReadOnlyObservableSet<T> base class to specifically filter hierarchy items (not progressive nodes) in a solution filter. If you are creating a solution filter from scratch, use IReadOnlyObservableSet.

See Also

Reference

Microsoft.VisualStudio.Shell Namespace