Firebase.Database.TransactionResult

Instances of this class represent the desired outcome of a single Run of a transaction.

Summary

The options are:

  • Set the data to the new value (success)
  • abort the transaction
Instances are created using TransactionResult.Success(MutableData) or TransactionResult.Abort()

Properties

IsSuccess
bool
Returns
Whether or not this result is a success

Public static functions

Abort()
Returns
A TransactionResult that aborts the transaction
Success(MutableData resultData)
Parameters
resultData
The desired data at the location
Returns
A TransactionResult indicating the new data to be stored at the location

Properties

IsSuccess

bool IsSuccess

Details
Returns
Whether or not this result is a success

Public static functions

Abort

TransactionResult Abort()

Details
Returns
A TransactionResult that aborts the transaction

Success

TransactionResult Success(
  MutableData resultData
)

Details
Parameters
resultData
The desired data at the location
Returns
A TransactionResult indicating the new data to be stored at the location

Send feedback about...

Need help? Visit our support page.