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\u003eThis document provides reference information for the \u003ccode\u003eTransactionId\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Spanner.Data\u003c/code\u003e namespace, specifically version 4.1.0 and other versions listed.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransactionId\u003c/code\u003e class holds information about an active transaction in Cloud Spanner, and it can be serialized to allow sharing of the transaction information across processes or machines.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eObject\u003c/code\u003e and implements \u003ccode\u003eIEquatable<TransactionId>\u003c/code\u003e, and includes methods such as \u003ccode\u003eFromBase64String()\u003c/code\u003e to create an instance from a Base64 string and \u003ccode\u003eToBase64String()\u003c/code\u003e to encode the transaction information.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransactionId\u003c/code\u003e class includes a \u003ccode\u003eConnectionString\u003c/code\u003e property that represents the connection string used to create the transaction, and has an \u003ccode\u003eoverride\u003c/code\u003e method \u003ccode\u003eGetHashCode()\u003c/code\u003e that returns the hash code for the instance.\u003c/p\u003e\n"],["\u003cp\u003eThe versions listed show a range of versions from \u003ccode\u003e3.5.0\u003c/code\u003e up to \u003ccode\u003e5.0.0-beta05\u003c/code\u003e for the \u003ccode\u003eTransactionId\u003c/code\u003e class with version \u003ccode\u003e5.0.0-beta05\u003c/code\u003e being the latest.\u003c/p\u003e\n"]]],[],null,[]]