|   | LogicalThreadOperation(LogicalThread, Action, Int32, Boolean) Constructor | 
        
        
        
        Namespace: GSF.ThreadingAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.257-beta+00aa2366fbb9ec75f636ebc7cfa610e3826a727c
 Syntax
Syntaxpublic LogicalThreadOperation(
	LogicalThread thread,
	Action action,
	int priority,
	bool autoRunIfPending = true
)
Public Sub New ( 
	thread As LogicalThread,
	action As Action,
	priority As Integer,
	Optional autoRunIfPending As Boolean = true
)
public:
LogicalThreadOperation(
	LogicalThread^ thread, 
	Action^ action, 
	int priority, 
	bool autoRunIfPending = true
)
new : 
        thread : LogicalThread * 
        action : Action * 
        priority : int * 
        ?autoRunIfPending : bool 
(* Defaults:
        let _autoRunIfPending = defaultArg autoRunIfPending true
*)
-> LogicalThreadOperationGSF.Threading.LogicalThreadOperation = function(thread, action, priority, autoRunIfPending);
Parameters
- thread  LogicalThread
- The thread on which to execute the operation's action.
- action  Action
- The action to be executed.
- priority  Int32
- The priority with which the action should be executed on the logical thread.
- autoRunIfPending  Boolean  (Optional)
- 
            Set to true to execute RunIfPending automatically; otherwise, 
            set to false for user controlled call timing.
            
 Exceptions
Exceptions| Exception | Condition | 
|---|
| ArgumentException | priority is outside the range between 1 and PriorityLevels. | 
 See Also
See Also