public sealed class TransactionId : IEquatable<TransactionId>
Reference documentation and code samples for the Google.Cloud.Spanner.Data class 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\u003eThe latest beta version for Google.Cloud.Spanner.Data is 5.0.0-beta05, while version 4.6.0 is currently the standard, with a range of older versions listed from 4.5.0 down to 3.5.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransactionId\u003c/code\u003e class, which is part of the Google.Cloud.Spanner.Data namespace, holds information about active Cloud Spanner transactions, and is serializable, allowing for sharing of transaction details across processes or machines.\u003c/p\u003e\n"],["\u003cp\u003eThis \u003ccode\u003eTransactionId\u003c/code\u003e class, which inherits from object and implements \u003ccode\u003eIEquatable<TransactionId>\u003c/code\u003e, includes a \u003ccode\u003eConnectionString\u003c/code\u003e property which represents the connection string the transaction originated from.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransactionId\u003c/code\u003e class includes methods for converting the transaction ID to and from a Base64 encoded string, specifically, \u003ccode\u003eFromBase64String(string)\u003c/code\u003e to recreate the transaction and \u003ccode\u003eToBase64String()\u003c/code\u003e to convert to the string format.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransactionId\u003c/code\u003e class, part of the \u003ccode\u003eGoogle.Cloud.Spanner.Data\u003c/code\u003e assembly, also contains an override for \u003ccode\u003eGetHashCode()\u003c/code\u003e to provide a unique hash code for the object.\u003c/p\u003e\n"]]],[],null,[]]