ObservableCollection<T>.BlockReentrancy ObservableCollection<T>.BlockReentrancy ObservableCollection<T>.BlockReentrancy ObservableCollection<T>.BlockReentrancy Method

定義

このコレクションを変更するための再入試行を禁止します。Disallows reentrant attempts to change this collection.

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

戻り値

オブジェクトの破棄に使用できる IDisposable オブジェクト。An IDisposable object that can be used to dispose of the object.

一般的な使用方法は、OnCollectionChanged内での呼び出しをusing次の例のように、スコープ。The typical usage is to wrap an OnCollectionChanged call within a using scope, as in the following example:

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

適用対象

こちらもご覧ください