public sealed class TransactionOptionsReference documentation and code samples for the Firestore API class TransactionOptions.
Immutable class representing options for executing transactions.
Namespace
GoogleCloudFirestoreAssembly
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 |
int |
|
Methods
ForMaxAttempts(int)
public static TransactionOptions ForMaxAttempts(int maxAttempts)Creates an instance with the given maximum number of attempts.
| Parameter | |
|---|---|
| Name | Description |
maxAttempts |
intThe number of times a transaction will be attempted before failing. Must be positive. |
| Returns | |
|---|---|
| Type | Description |
TransactionOptions |
A new options object. |