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 \u003ccode\u003eTransactionId\u003c/code\u003e class in Google.Cloud.Spanner.Data holds identifying information about an active Cloud Spanner transaction, allowing for connection to the same transaction from different processes or machines.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version is 5.0.0-beta05, with the content referring to version 4.3.0, and many other versions available for use in between, as well as before the 4.3.0 and the newest one.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransactionId\u003c/code\u003e class implements \u003ccode\u003eIEquatable\u003c/code\u003e and inherits members from the \u003ccode\u003eobject\u003c/code\u003e class, which includes methods like \u003ccode\u003eGetType()\u003c/code\u003e, \u003ccode\u003eMemberwiseClone()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can serialize a \u003ccode\u003eTransactionId\u003c/code\u003e into a Base64 string using \u003ccode\u003eToBase64String()\u003c/code\u003e and deserialize it back into a \u003ccode\u003eTransactionId\u003c/code\u003e using \u003ccode\u003eFromBase64String(string)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes a \u003ccode\u003eConnectionString\u003c/code\u003e property that indicates the connection string used when the transaction was created, as well as an override for the \u003ccode\u003eGetHashCode()\u003c/code\u003e method.\u003c/p\u003e\n"]]],[],null,[]]