Partager via


ICacheableAttachedCollectionSource.CanCache Property

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.

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

Syntax

'Declaration
ReadOnly Property CanCache As Boolean
bool CanCache { get; }
property bool CanCache {
    bool get ();
}
abstract CanCache : bool with get
function get CanCache () : boolean

Property Value

Type: Boolean
Returns Boolean.

.NET Framework Security

See Also

Reference

ICacheableAttachedCollectionSource Interface

Microsoft.VisualStudio.Shell Namespace