Sys.Data.AdoNetActionResult.result Property

Gets the outcome of the data operation.

get_result: function()

Usage

var a = exampleActionResult.get_result();

Return Value

An object that represents the outcome of the data operation, or null if no data is returned from the operation.

Remarks

The following table lists the data operation scenarios and the contents of the result property for each scenario.

Scenario

Contents of result property

Exception thrown by data service

null

Insert operation

An object that represents the new data.

Remove or update operation

null

When data is returned from an insert or data-retrieval operation, the data is returned as a JSON type. When an exception is thrown by the data service, the exception is stored in the error property.

See Also

Other Resources

Sys.Data.AdoNetActionResult Class

Sys.Data.AdoNetServiceError Class