Export (0) Print
Expand All

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
)

Parameters

item
Type: Microsoft.SharePoint.SPListItem

The item to be processed.

rgstrOtherArgs
Type: []

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

strMessage
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.

Community Additions

ADD
Show:
© 2014 Microsoft