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

'Declaration
Public Interface IReadOnlyObservableSet(Of T) _
    Inherits IReadOnlyObservableSet, INotifyCollectionChanged, IEnumerable(Of T),  _
    IEnumerable
public interface IReadOnlyObservableSet<T> : IReadOnlyObservableSet, 
    INotifyCollectionChanged, IEnumerable<T>, IEnumerable
generic<typename T>
public interface class IReadOnlyObservableSet : IReadOnlyObservableSet, 
    INotifyCollectionChanged, IEnumerable<T>, IEnumerable
type IReadOnlyObservableSet<'T> =  
    interface 
        interface IReadOnlyObservableSet 
        interface INotifyCollectionChanged 
        interface IEnumerable<'T>
        interface IEnumerable 
    end
JScript does not support generic types or methods.

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

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