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 version of the \u003ccode\u003eTransactionId\u003c/code\u003e class is \u003ccode\u003e5.0.0-beta05\u003c/code\u003e, with multiple previous versions available for reference, including beta and stable releases.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTransactionId\u003c/code\u003e is a class within the \u003ccode\u003eGoogle.Cloud.Spanner.Data\u003c/code\u003e namespace designed to hold information about an active transaction in Cloud Spanner and is serializable.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eTransactionId\u003c/code\u003e offers methods such as \u003ccode\u003eFromBase64String(string)\u003c/code\u003e to create a \u003ccode\u003eTransactionId\u003c/code\u003e from a Base64 encoded string, and \u003ccode\u003eToBase64String()\u003c/code\u003e to generate a Base64 encoded string representation of a \u003ccode\u003eTransactionId\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransactionId\u003c/code\u003e class has a property, \u003ccode\u003eConnectionString\u003c/code\u003e, that stores the connection string the transaction was created in.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTransactionId\u003c/code\u003e also inherits methods from the base \u003ccode\u003eobject\u003c/code\u003e class, such as \u003ccode\u003eGetType()\u003c/code\u003e, \u003ccode\u003eToString()\u003c/code\u003e, and \u003ccode\u003eGetHashCode()\u003c/code\u003e, with the latter being overriden to provide a hash code for the current object.\u003c/p\u003e\n"]]],[],null,[]]