Share via


ICacheableAttachedCollectionSource 接口

定义

表示可能缓存的 IAttachedCollectionSource。 不需要在每次请求缓存源时重新创建缓存源。

public interface class ICacheableAttachedCollectionSource : Microsoft::VisualStudio::Shell::IAttachedCollectionSource
public interface class ICacheableAttachedCollectionSource : Microsoft::VisualStudio::Shell::IAttachedCollectionSource
__interface ICacheableAttachedCollectionSource : Microsoft::VisualStudio::Shell::IAttachedCollectionSource
public interface ICacheableAttachedCollectionSource : Microsoft.VisualStudio.Shell.IAttachedCollectionSource
type ICacheableAttachedCollectionSource = interface
    interface IAttachedCollectionSource
Public Interface ICacheableAttachedCollectionSource
Implements IAttachedCollectionSource
实现

属性

CanCache

获取是否可以缓存此 IAttachedCollectionSource 中的项。 不支持通过 INotifyCollectionChanged () 对其项进行可观测更改的 IAttachedCollectionSource 实例进行缓存,因为缓存 IAttachedCollectionSource 将永久缓存过时的集合。

HasItems

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

(继承自 IAttachedCollectionSource)
Items

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

(继承自 IAttachedCollectionSource)
SourceItem

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

(继承自 IAttachedCollectionSource)

适用于