CollectionView::DetachFromSourceCollection Method ()

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Removes the reference to the underlying collection from the CollectionView.

Namespace:   System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
virtual void DetachFromSourceCollection()

Use this method to unsubscribe to events on the underlying collection and allow the CollectionView to be garbage collected.

.NET Framework
Available since 4.5
Return to top
Show: