다음을 통해 공유


ReadOnlyObservableSet<T> 클래스

정의

제네릭 IReadOnlyObservableSet에 대한 기본 클래스를 제공합니다.

generic <typename T>
public ref class ReadOnlyObservableSet abstract : Microsoft::VisualStudio::Shell::IReadOnlyObservableSet<T>, System::Collections::Generic::IEnumerable<T>, System::Collections::Specialized::INotifyCollectionChanged
public abstract class ReadOnlyObservableSet<T> : Microsoft.VisualStudio.Shell.IReadOnlyObservableSet<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.Specialized.INotifyCollectionChanged
type ReadOnlyObservableSet<'T> = class
    interface IReadOnlyObservableSet<'T>
    interface IReadOnlyObservableSet
    interface IEnumerable
    interface INotifyCollectionChanged
    interface seq<'T>
Public MustInherit Class ReadOnlyObservableSet(Of T)
Implements IEnumerable(Of T), INotifyCollectionChanged, IReadOnlyObservableSet(Of T)

형식 매개 변수

T

집합에 저장된 항목의 형식입니다.

상속
ReadOnlyObservableSet<T>
구현

생성자

ReadOnlyObservableSet<T>(IEqualityComparer<T>)

비어 있는 클래스의 ReadOnlyObservableSet<T> 새 instance 초기화하고 집합 형식에 대해 지정된 같음 비교자를 사용합니다.

속성

Count

ReadOnlyObservableSet<T>에 실제로 포함된 요소의 수를 가져옵니다.

메서드

AddItem(T)

지정된 요소를 집합에 추가합니다.

ClearItems()

ReadOnlyObservableSet<T> 개체에서 요소를 모두 제거합니다.

Contains(Object)

ReadOnlyObservableSet<T>에 요소가 있는지 여부를 확인합니다.

Contains(T)

ReadOnlyObservableSet<T>에 요소가 있는지 여부를 확인합니다.

GetEnumerator()

ReadOnlyObservableSet<T>를 반복하는 열거자를 반환합니다.

OnCollectionChanged(NotifyCollectionChangedEventArgs)

컬렉션이 변경될 때 호출됩니다.

OnItemAdded(T)

요소가 집합에 추가될 때 호출됩니다.

OnItemRemoved(T)

요소가 집합에서 제거될 때 호출됩니다.

OnItemsCleared(IEnumerable<T>)

집합이 지워지면 호출됩니다.

RemoveItem(T)

ReadOnlyObservableSet<T> 개체에서 지정된 요소를 제거합니다.

이벤트

CollectionChanged

항목이 추가, 제거, 변경, 이동되거나 전체 집합이 새로 고쳐질 때 발생합니다.

명시적 인터페이스 구현

IEnumerable.GetEnumerator()

ReadOnlyObservableSet<T>를 반복하는 열거자를 반환합니다.

확장 메서드

EmptyIfNull<T>(IEnumerable<T>)

null이 아닌 경우 이 열거형을 반환합니다. null인 경우 빈 열거형을 반환합니다.

적용 대상