Parameters The following table lists the parameters of the Perform method. TIP: Any exception thrown from the custom action classes is caught by the web part. Afterwards, the web part will set the event's Cancel property to true and set its error message with the exception’s Message property. Table 2. Perform method parameters Parameter Description HttpContext Allows you to access the Request and Response object a collection of Microsoft.SharePoint.PListItem objects (for qListView and qListForm) or a collection of System.Data.DataRow objects (for qSIListView, qSIListForm and qSIChartView) Allows the following: • This parameter is never null and it will contain zero or more SPListItem or DataRow objects. • When your custom code is called from the qListForm's toolbar button or qListView's context menu item, the collection will contain one SPListItem object, which is the item that is being right-clicked in the listview or displayed in the list form. • When your custom code is called from the qListView's toolbar button, it may contain zero or more SPListItem objects, which are the items that are selected in the listview. • When your custom code is called from the qSIListForm's toolbar button or qSIListView's context menu item, the collection will contain one DataRow object, which is the row that is being right-clicked in the listview or displayed in the list form. • When your custom code is called from the qSIListView's toolbar button, it may contain zero or more DataRow objects, which are the rows that are selected in the listview. • When your custom code is called from the qSIChartView’s toolbar button, it contains all the rows that are being used in the chart view. CustomActionCancelEventArgs Is used to tell the web part about the outcome of the action. This allows you to: • Cancel the operation • Set a custom error message