id may be used to identify the transaction in subsequent
[Read][google.spanner.v1.Spanner.Read],
[ExecuteSql][google.spanner.v1.Spanner.ExecuteSql],
[Commit][google.spanner.v1.Spanner.Commit], or
[Rollback][google.spanner.v1.Spanner.Rollback] calls.
Single-use read-only transactions do not have IDs, because
single-use transactions do not support multiple requests.
Property Value
Type
Description
Google.Protobuf.ByteString
ReadTimestamp
public Timestamp ReadTimestamp { get; set; }
For snapshot read-only transactions, the read timestamp chosen
for the transaction. Not returned by default: see
[TransactionOptions.ReadOnly.return_read_timestamp][google.spanner.v1.TransactionOptions.ReadOnly.return_read_timestamp].
A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
Example: "2014-10-02T15:01:23.045123456Z".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["The latest version of the `Google.Cloud.Spanner.V1.Transaction` is `5.0.0-beta05`, with several previous versions listed, including a stable release at `4.6.0` and older versions going back to `3.5.0`."],["The `Transaction` class, found within the `Google.Cloud.Spanner.V1` namespace, implements multiple interfaces, including `IMessage\u003cTransaction\u003e`, `IEquatable\u003cTransaction\u003e`, `IDeepCloneable\u003cTransaction\u003e`, `IBufferMessage`, and `IMessage`."],["The `Transaction` class has two constructors: a default constructor `Transaction()` and a copy constructor `Transaction(Transaction other)` for creating a new transaction from an existing one."],["The class contains two key properties, `Id` which is a `ByteString` used to identify a transaction, and `ReadTimestamp` of type `Timestamp`, specifying the read timestamp for snapshot read-only transactions."]]],[]]