IAsyncAttachedCollectionSource 接口

定义

表示一个 IAttachedCollectionSource 对象,该对象可以报告 HasItems 属性当前是否正在初始化,并在 IsInitializingHasItems 值更改时引发 INotifyPropertyChanged 事件。

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
实现

属性

HasItems

如果此 IAttachedCollectionSource 包含任何项,则返回 true,否则返回 false。 访问 HasItems 不一定自行创建项。

(继承自 IAttachedCollectionSource)
IsUpdatingHasItems

获取 HasItems 属性当前是否正在更新。 由于更新 HasItems 可能是异步操作,因此 IAttachedCollectionSource 的使用者可能需要等待此属性变为 false,然后再确定没有项。

Items

获取 (,并在必要时创建) 与此 IAttachedCollectionSource 关联的项的集合。

(继承自 IAttachedCollectionSource)
SourceItem

获取用于创建此 IAttachedCollectionSource 的对象。

(继承自 IAttachedCollectionSource)

适用于