CollectionSynchronizationCallback Delegat

Definition

Stellt die Methode dar, die eine Auflistung für den threadübergreifenden Zugriff synchronisiert.

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)

Parameter

collection
IEnumerable

Die Sammlung, auf die in einem anderen Thread als dem, von dem sie erstellt wurde, zugegriffen werden soll.

context
Object

Ein Objekt, das zum Synchronisieren der Auflistung verwendet wird.

accessMethod
Action

Ein Delegat an die Methode, die den Vorgang für die Auflistung ausführt.

writeAccess
Boolean

true if accessMethod writes to the collection; otherwise, false.

Erweiterungsmethoden

Name Beschreibung
GetMethodInfo(Delegate)

Ruft ein Objekt ab, das die vom angegebenen Delegaten dargestellte Methode darstellt.

Gilt für: