Class TransactionOptions (3.0.0)

public sealed class TransactionOptions

Immutable class representing options for executing transactions.

Inheritance

Object > TransactionOptions

Namespace

Google.Cloud.Firestore

Assembly

Google.Cloud.Firestore.dll

Properties

Default

public static TransactionOptions Default { get; }

The transaction options that are used if nothing is specified by the caller.

Property Value
Type Description
TransactionOptions

MaxAttempts

public int MaxAttempts { get; }

The number of times the transaction will be attempted before failing.

Property Value
Type Description
Int32

Methods

ForMaxAttempts(Int32)

public static TransactionOptions ForMaxAttempts(int maxAttempts)

Creates an instance with the given maximum number of attempts.

Parameter
Name Description
maxAttempts Int32

The number of times a transaction will be attempted before failing. Must be positive.

Returns
Type Description
TransactionOptions

A new options object.