Maik Schulze

We want to use a SPWorkItemJobDefinition to create a job, that processes the SPWorkItems from the SPWorkItemCollection.

How is the correct way to create a custom SPWorkItem in this collection

Thank you.



Re: SharePoint - Development and Programming SPWorkItemJobDefinition

smc750

A great place to start is to download the latest wss sdk at:

http://www.microsoft.com/downloads/details.aspx familyid=05E0DD12-8394-402B-8936-A07FE8AFAFFD&displaylang=en

This has much more documentation on what you need to do working with the SPWorkItemJobDefinition. You must use the ProcessWorkItems method and you must add the SPWorkItem to the SPWorkItem collection that the SPSite object will have access to via the GetWorkItems method.