public sealed class TransactionId : IEquatable<TransactionId>
A TransactionId holds identifying information about an active transaction in
Cloud Spanner. Since it is serializable, it enables you to send this information
to another process or machine so it may connect to the same transaction.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document outlines the \u003ccode\u003eTransactionId\u003c/code\u003e class, which is essential for managing active transactions in Cloud Spanner, allowing for the transfer of transaction information between processes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransactionId\u003c/code\u003e class offers methods to serialize (\u003ccode\u003eToBase64String\u003c/code\u003e) and deserialize (\u003ccode\u003eFromBase64String\u003c/code\u003e) transaction identifiers using Base64 encoding, enabling it to be sent to other processes and reconnected.\u003c/p\u003e\n"],["\u003cp\u003eThe connection string associated with the transaction's creation can be retrieved through the \u003ccode\u003eConnectionString\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eVersion 5.0.0-beta05 is the latest version, and various other versions are available for reference.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTransactionId\u003c/code\u003e implements \u003ccode\u003eIEquatable<TransactionId>\u003c/code\u003e, and is derived from \u003ccode\u003eObject\u003c/code\u003e, which means it supports methods such as \u003ccode\u003eGetHashCode()\u003c/code\u003e, and inherits members from \u003ccode\u003eObject\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]