IWorkItemTypeCatalogService.CreateEachWorkItem Generic Method (WorkItem, Generic Action)
Creates WorkItems for the registered types that match the provided type.
Namespace: Microsoft.Practices.CompositeUI.Services
Assembly: Microsoft.Practices.CompositeUI (in microsoft.practices.compositeui.dll)
Syntax
'Declaration
Sub CreateEachWorkItem(Of TWorkItem) ( _
parentWorkItem As WorkItem, _
action As Action(Of TWorkItem) _
)
'Usage
Dim instance As IWorkItemTypeCatalogService
Dim parentWorkItem As WorkItem
Dim action As Action(Of TWorkItem)
instance.CreateEachWorkItem(parentWorkItem, action)
void CreateEachWorkItem<TWorkItem> (
WorkItem parentWorkItem,
Action<TWorkItem> action
)
generic<typename TWorkItem>
void CreateEachWorkItem (
WorkItem^ parentWorkItem,
Action<TWorkItem>^ action
)
J# supports the use of generic types and methods, but not the declaration of new ones.
JScript does not support generic types and methods.
Parameters
- parentWorkItem
The parent WorkItem to create them in.
- action
A callback for each created WorkItem.
See Also
Reference
IWorkItemTypeCatalogService Interface
IWorkItemTypeCatalogService Members
Microsoft.Practices.CompositeUI.Services Namespace