IProcess.ProcessItem Method

Performs custom processing on the specified item.

Namespace:  Microsoft.Office.RecordsManagement.SearchAndProcess
Assembly:  Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)

bool ProcessItem(
	SPListItem item,
	string[] rgstrOtherArgs,
	out string strMessage


Type: Microsoft.SharePoint.SPListItem

The item to be processed.

Type: []

Any optional arguments the user specified for SharePoint Server 2010 to pass to the assembly.

Type: System.String

An output parameter for the assembly to return detailed processing information to SharePoint Server 2010.

Return Value

Type: System.Boolean
A Boolean that specifies whether the item was successfully processed.

During a search and process operation, SharePoint Server 2010 calls the ProcessItem method once for each item in the search return set.

SharePoint Server 2010 stores the Boolean success indicator, as well as any detailed information returned from the strMessage parameter, for each item processed. SharePoint Server 2010 includes this information in the search and process job summary report that is sent in e-mail to the specified users.

For more information about how SharePoint Server 2010 invokes the IProcess interface during search and process operations, see Search and Process Development Process.