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\u003eThe \u003ccode\u003eTransactionId\u003c/code\u003e class, found in the \u003ccode\u003eGoogle.Cloud.Spanner.Data\u003c/code\u003e namespace, holds identifying information about an active transaction in Cloud Spanner, and is serializable.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransactionId\u003c/code\u003e class is derived from the \u003ccode\u003eObject\u003c/code\u003e class and implements the \u003ccode\u003eIEquatable<TransactionId>\u003c/code\u003e interface, and this class can be found in the assembly \u003ccode\u003eGoogle.Cloud.Spanner.Data.dll\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can get the \u003ccode\u003eConnectionString\u003c/code\u003e where the transaction was created by using the \u003ccode\u003eConnectionString\u003c/code\u003e property, and also use \u003ccode\u003eGetHashCode\u003c/code\u003e to get the hash code for the transaction.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransactionId\u003c/code\u003e can be converted to and from a Base64 encoded string using the methods \u003ccode\u003eToBase64String()\u003c/code\u003e and \u003ccode\u003eFromBase64String(String)\u003c/code\u003e respectively, enabling the sharing of transaction information between different processes or machines.\u003c/p\u003e\n"],["\u003cp\u003eThis page provides access to multiple versions of the \u003ccode\u003eGoogle.Cloud.Spanner.Data\u003c/code\u003e package, with \u003ccode\u003e5.0.0-beta05\u003c/code\u003e being the latest and \u003ccode\u003e3.5.0\u003c/code\u003e being the oldest on this page.\u003c/p\u003e\n"]]],[],null,[]]