Sys.Data.ActionResult
Represents the result of one operation from a sequence of actions executed against the data service.
Namespace: Sys.Data.
Inherits: None.
Syntax
Sys.Data.ActionResult = function(result, actionContext, operation)
Public Constructors
Members
Remarks
When you execute a sequence of data operations in a single request, one ActionResult object is returned for each data operation. The ActionRequest class enables you to examine the results of a single data operation that was performed in the series of actions. You create and execute a sequence of data operations by calling the createActionSequence and executeActions methods. You provide a callback method when calling the executeActions method and that callback method receives an array of ActionResult objects. You can retrieve those ActionResult objects in the callback method and take any required actions based on the values in those ActionResult objects.
The result property contains the outcome of the data operation, according to the following conditions:
|
Scenario
|
result property contains
|
|
Exception thrown by data service
|
An instance of Sys.Data.DataServiceError
|
|
Insert or update operation with provideReturnData parameter set to true
|
An object representing the new data
|
|
Insert or update operation with provideReturnData parameter set to false
|
null
|
|
Remove operation
|
null
|
The operation property contains a short description of the type of operation that was performed. Depending on the operation, the string value in the property will be update, insert, or remove. The actionContext property contains any values you passed in to the context object when adding the operation to the sequence. You store values in the context object that you need to retrieve in the callback function.
This topic is ASP.NET Extensions documentation and is unsupported by Microsoft. Blank topics are included as placeholders and existing content is subject to change in future releases.