ObservableCollection(Of T).BlockReentrancy Method ()

 
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.

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:

Using BlockReentrancy()
	' OnCollectionChanged call
End Using

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show: