Bagikan melalui


IAsyncAttachedCollectionSource Antarmuka

Definisi

Mewakili objek IAttachedCollectionSource yang dapat melaporkan apakah properti HasItems saat ini sedang diinisialisasi atau tidak, dan yang meningkatkan peristiwa INotifyPropertyChanged saat nilai IsInitializingHasItems berubah.

public interface class IAsyncAttachedCollectionSource : Microsoft::VisualStudio::Shell::IAttachedCollectionSource, System::ComponentModel::INotifyPropertyChanged
public interface IAsyncAttachedCollectionSource : Microsoft.VisualStudio.Shell.IAttachedCollectionSource, System.ComponentModel.INotifyPropertyChanged
type IAsyncAttachedCollectionSource = interface
    interface IAttachedCollectionSource
    interface INotifyPropertyChanged
Public Interface IAsyncAttachedCollectionSource
Implements IAttachedCollectionSource, INotifyPropertyChanged
Penerapan

Properti

HasItems

Mengembalikan true jika IAttachedCollectionSource ini memiliki item apa pun, jika tidak salah. Mengakses HasItems tidak selalu membuat item itu sendiri.

(Diperoleh dari IAttachedCollectionSource)
IsUpdatingHasItems

Mendapatkan apakah properti HasItems saat ini sedang diperbarui atau tidak. Karena memperbarui HasItems mungkin merupakan operasi asinkron, konsumen IAttachedCollectionSource mungkin ingin menunggu properti ini menjadi salah sebelum memutuskan bahwa tidak ada item.

Items

Mendapatkan (dan membuat, jika perlu) kumpulan item yang terkait dengan IAttachedCollectionSource ini.

(Diperoleh dari IAttachedCollectionSource)
SourceItem

Mendapatkan objek yang digunakan untuk membuat IAttachedCollectionSource ini.

(Diperoleh dari IAttachedCollectionSource)

Berlaku untuk