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 page details the \u003ccode\u003eTransactionId\u003c/code\u003e class in the Google.Cloud.Spanner.Data namespace, used for managing active transactions in Cloud Spanner.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransactionId\u003c/code\u003e class allows for serialization of transaction information, enabling sharing transaction details across different processes or machines.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eGoogle.Cloud.Spanner.Data\u003c/code\u003e package documented here is 5.0.0-beta05, but this page specifically deals with the 3.7.0 version, and it lists other previous versions from 3.5.0 up to 5.0.0-beta04.\u003c/p\u003e\n"],["\u003cp\u003eKey functionalities of the \u003ccode\u003eTransactionId\u003c/code\u003e class include \u003ccode\u003eFromBase64String()\u003c/code\u003e for creating an instance from a Base64 string, and \u003ccode\u003eToBase64String()\u003c/code\u003e for encoding the transaction ID into a Base64 string.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConnectionString\u003c/code\u003e property is provided by the \u003ccode\u003eTransactionId\u003c/code\u003e class to display the string this transaction was created in, and it also overrides the \u003ccode\u003eGetHashCode()\u003c/code\u003e method inherited from the base class.\u003c/p\u003e\n"]]],[],null,[]]