Click or drag to resize

EventHandlerExecutionOrderPreserverRestorePriority Method

Applies an event handler priority rule to a set of event handlers for a certain type by re-sorting them as needed.

Namespace:  MFiles.VAF.Core
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: 2.3.623.2
Syntax
public virtual bool RestorePriority(
	EventHandlerExecutionOrderPreserverEventHandlerPriority handlerPriority,
	string eventHandlerPrefix,
	List<EventHandler> handlers,
	out List<EventHandler> sortedHandlers
)

Parameters

handlerPriority
Type: MFiles.VAF.CoreEventHandlerExecutionOrderPreserverEventHandlerPriority
The priority rule to apply.
eventHandlerPrefix
Type: SystemString
The target application's event handler prefix.
handlers
Type: System.Collections.GenericListEventHandler
The current event handlers.
sortedHandlers
Type: System.Collections.GenericListEventHandler
The sorted handlers. Will be the same as handlers if no resorting occured.

Return Value

Type: Boolean
True if the handlers were resorted, false otherwise.
See Also