CheckReentrancy Method

ObservableCollection<T>.CheckReentrancy Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Checks for reentrant attempts to change this collection.

Namespace:  System.Collections.ObjectModel
Assembly:  System (in System.dll)

protected void CheckReentrancy()

ExceptionCondition
InvalidOperationException

If there was a call to BlockReentrancy of which the IDisposable return value has not yet been disposed of. Typically, this means when there are additional attempts to change this collection during a CollectionChanged event. However, it depends on when derived classes choose to call BlockReentrancy.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft