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

Name

Description

ActionResult Constructor

Creates a new instance of the ActionResult class.

Members

Member

Description

actionContext Property

Gets the state object that was passed in for the operation.

operation Property

Gets a short description of the operation that was performed.

result Property

Gets the result of the operation.

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.

See Also

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.