WorkerThreadPoolQueueUserWorkItemT Method (ActionT, T, String) |
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,
string pNameTag
)
where T : class
Public Function QueueUserWorkItem(Of T As Class) (
pAction As Action(Of T),
pState As T,
pNameTag As String
) As IWorkItem
public:
generic<typename T>
where T : ref class
IWorkItem^ QueueUserWorkItem(
Action<T>^ pAction,
T pState,
String^ pNameTag
)
member QueueUserWorkItem :
pAction : Action<'T> *
pState : 'T *
pNameTag : string -> IWorkItem when 'T : not struct
Parameters
- pAction
- Type: SystemActionT
An ActionT delegate. - pState
- Type: T
The state of this WorkItem. - pNameTag
- Type: SystemString
A tag that is used to identify the WorkItem using it`s ToString() method.
Type Parameters
- T
- The type of the action.
Return Value
Type:
IWorkItemAn IWorkItem.
See Also