CollectionSynchronizationCallback 代理人

定義

表示同步集合以實現跨執行緒存取的方法。

public delegate void CollectionSynchronizationCallback(IEnumerable ^ collection, System::Object ^ context, Action ^ accessMethod, bool writeAccess);
public delegate void CollectionSynchronizationCallback(IEnumerable collection, object context, Action accessMethod, bool writeAccess);
type CollectionSynchronizationCallback = delegate of IEnumerable * obj * Action * bool -> unit
Public Delegate Sub CollectionSynchronizationCallback(collection As IEnumerable, context As Object, accessMethod As Action, writeAccess As Boolean)

參數

collection
IEnumerable

集合是用來存取非創建該執行緒的執行緒的集合。

context
Object

一個用來同步集合的物件。

accessMethod
Action

一個代理到執行集合操作的方法。

writeAccess
Boolean

true如果accessMethod寫入集合;否則,。 false

擴充方法

名稱 Description
GetMethodInfo(Delegate)

取得一個代表指定代理所代表方法的物件。

適用於