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 provides identifying information about an active Cloud Spanner transaction, allowing for it to be serialized and shared between processes or machines.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransactionId\u003c/code\u003e class can be instantiated from a Base64 encoded string using the \u003ccode\u003eFromBase64String()\u003c/code\u003e method, enabling the recreation of a transaction from serialized data.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eToBase64String()\u003c/code\u003e method converts a \u003ccode\u003eTransactionId\u003c/code\u003e object into a Base64 encoded string, which is useful for transmitting the transaction's identifying data.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConnectionString\u003c/code\u003e property gives the connection string that the transaction was initially created in.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements \u003ccode\u003eIEquatable<TransactionId>\u003c/code\u003e, providing functionality for comparison between \u003ccode\u003eTransactionId\u003c/code\u003e instances.\u003c/p\u003e\n"]]],[],null,[]]