Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CollectionView.DetachFromSourceCollection Method

.NET Framework 4.6 and 4.5

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

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft