ProcessBatchData Method

The ProcessBatchData method of the SPWeb class processes the specified batch string of commands for sending multiple requests to the server per transaction.

Parameters

strBatchData   A string in Collaborative Application Markup Language (CAML) that contains the batch string of commands, which consists of a Batch element and any number of Method subelements that each specify a Windows SharePoint Services RPC method.

Return Value

A string that contains the results.

Example

The following code example uses the ProcessBatchData method to add two items to the Announcements list of a specified site in the current site collection.

This example requires using directives (Imports in Visual Basic) for both the Microsoft.SharePoint and Microsoft.SharePoint.WebControls namespaces.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security