ObservableCollection<T>.BlockReentrancy Método

Definição

Proibi tentativas reentrantes de alterar esta coleção.

protected:
 IDisposable ^ BlockReentrancy();
protected IDisposable BlockReentrancy();
member this.BlockReentrancy : unit -> IDisposable
Protected Function BlockReentrancy () As IDisposable

Devoluções

Um IDisposable objeto que pode ser usado para se livrar do objeto.

Exemplos

A utilização típica é envolver uma OnCollectionChanged chamada dentro de um using escopo, como no seguinte exemplo:

using (BlockReentrancy())
{
    // OnCollectionChanged call
}
Using BlockReentrancy()
    ' OnCollectionChanged call
End Using

Aplica-se a

Ver também