BindingOperations::AccessCollection Method (IEnumerable^, Action^, Boolean)

.NET Framework (current version)
 

Provides access to a collection by using the synchronization mechanism that the application specified when it called EnableCollectionSynchronization.

Namespace:   System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
static void AccessCollection(
	IEnumerable^ collection,
	Action^ accessMethod,
	bool writeAccess
)

Parameters

collection
Type: System.Collections::IEnumerable^

The collection to access.

accessMethod
Type: System::Action^

The action to perform on the collection.

writeAccess
Type: System::Boolean

true if accessMethod will write to the collection; otherwise, false.

.NET Framework
Available since 4.5
Return to top
Show: