Windows Dev Center

ObservableCollection(Of T).BlockReentrancy Method

Disallows reentrant attempts to change this collection.

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

Protected Function BlockReentrancy As IDisposable

Return Value

Type: System.IDisposable
An IDisposable object that can be used to dispose of the object.

The typical usage is to wrap an OnCollectionChanged call within a using scope, as in the following example:

Windows Phone OS

Supported in: 8.1, 8.0

© 2015 Microsoft