共用方式為


ICacheableAttachedCollectionSource Interface

Represents an IAttachedCollectionSource that can potentially be cached. Cached sources do not need to be re-created each time they're requested.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.Immutable.12.0 (in Microsoft.VisualStudio.Shell.Immutable.12.0.dll)

Syntax

'Declaration
Public Interface ICacheableAttachedCollectionSource _
    Inherits IAttachedCollectionSource
public interface ICacheableAttachedCollectionSource : IAttachedCollectionSource
public interface class ICacheableAttachedCollectionSource : IAttachedCollectionSource
type ICacheableAttachedCollectionSource =  
    interface 
        interface IAttachedCollectionSource 
    end
public interface ICacheableAttachedCollectionSource extends IAttachedCollectionSource

The ICacheableAttachedCollectionSource type exposes the following members.

Properties

  Name Description
Public property CanCache Gets whether or not the items from this IAttachedCollectionSource can be cached. IAttachedCollectionSource instances that do not support observable changes to their items (via INotifyCollectionChanged) but which do change over time should not be cached, since caching the IAttachedCollectionSource will permanently cache a stale collection.
Public property HasItems Determines whether this IAttachedCollectionSource has any items. (Inherited from IAttachedCollectionSource.)
Public property Items Gets (and creates, if necessary) the collection of items associatedwith this IAttachedCollectionSource. (Inherited from IAttachedCollectionSource.)
Public property SourceItem Gets the object used to create this IAttachedCollectionSource. (Inherited from IAttachedCollectionSource.)

Top

See Also

Reference

Microsoft.VisualStudio.Shell Namespace