WorkerThreadPoolQueueUserWorkItemT Method (ActionT, T) |
Adds an
ActionT delegate call to the work item queue.
Namespace:
Jam.Shell
Assembly:
ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 7.1
Syntax public IWorkItem QueueUserWorkItem<T>(
Action<T> pAction,
T pState
)
where T : class
Public Function QueueUserWorkItem(Of T As Class) (
pAction As Action(Of T),
pState As T
) As IWorkItem
public:
generic<typename T>
where T : ref class
IWorkItem^ QueueUserWorkItem(
Action<T>^ pAction,
T pState
)
member QueueUserWorkItem :
pAction : Action<'T> *
pState : 'T -> IWorkItem when 'T : not struct
Parameters
- pAction
- Type: SystemActionT
An ActionT delegate. - pState
- Type: T
The state of this WorkItem.
Type Parameters
- T
- The type of the action.
Return Value
Type:
IWorkItemAn IWorkItem.
See Also