public sealed class TransactionOptions.Types.ReadWrite : IMessage<TransactionOptions.Types.ReadWrite>, IEquatable<TransactionOptions.Types.ReadWrite>, IDeepCloneable<TransactionOptions.Types.ReadWrite>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Spanner v1 API class TransactionOptions.Types.ReadWrite.
Message type to initiate a read-write transaction. Currently this
transaction type has no options.
public ByteString MultiplexedSessionPreviousTransactionId { get; set; }
Optional. Clients should pass the transaction ID of the previous
transaction attempt that was aborted if this transaction is being
executed on a multiplexed session.
This feature is not yet supported and will result in an UNIMPLEMENTED
error.
[[["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 webpage provides documentation for the \u003ccode\u003eTransactionOptions.Types.ReadWrite\u003c/code\u003e class within the Google Cloud Spanner v1 API, detailing how to initiate a read-write transaction.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransactionOptions.Types.ReadWrite\u003c/code\u003e class currently has no specific options but includes properties for \u003ccode\u003eMultiplexedSessionPreviousTransactionId\u003c/code\u003e and \u003ccode\u003eReadLockMode\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes versioned links, with version 5.0.0-beta05 being the latest, for the \u003ccode\u003eTransactionOptions.Types.ReadWrite\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransactionOptions.Types.ReadWrite\u003c/code\u003e class implements various interfaces, such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe document provides details about the constructors and properties available for the class, such as \u003ccode\u003eReadWrite()\u003c/code\u003e and \u003ccode\u003eReadWrite(TransactionOptions.Types.ReadWrite other)\u003c/code\u003e, \u003ccode\u003eMultiplexedSessionPreviousTransactionId\u003c/code\u003e, and \u003ccode\u003eReadLockMode\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Spanner v1 API - Class TransactionOptions.Types.ReadWrite (5.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.1.0 (latest)](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/5.0.0/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.6.0/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.5.0/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.4.0/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.3.0/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.2.0/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.1.0/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.0.0/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [3.15.1](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.15.1/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.14.0/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.13.0/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.12.0/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.11.0/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.10.0/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.9.0/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.8.0/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.7.0/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.6.0/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.5.0/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite) \n\n public sealed class TransactionOptions.Types.ReadWrite : IMessage\u003cTransactionOptions.Types.ReadWrite\u003e, IEquatable\u003cTransactionOptions.Types.ReadWrite\u003e, IDeepCloneable\u003cTransactionOptions.Types.ReadWrite\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Spanner v1 API class TransactionOptions.Types.ReadWrite.\n\nMessage type to initiate a read-write transaction. Currently this\ntransaction type has no options. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e TransactionOptions.Types.ReadWrite \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TransactionOptions](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.TransactionOptions)[Types](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.TransactionOptions.Types)[ReadWrite](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TransactionOptions](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.TransactionOptions)[Types](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.TransactionOptions.Types)[ReadWrite](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[TransactionOptions](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.TransactionOptions)[Types](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.TransactionOptions.Types)[ReadWrite](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.TransactionOptions.Types.ReadWrite), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Spanner.V1](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Spanner.V1.dll\n\nConstructors\n------------\n\n### ReadWrite()\n\n public ReadWrite()\n\n### ReadWrite(ReadWrite)\n\n public ReadWrite(TransactionOptions.Types.ReadWrite other)\n\nProperties\n----------\n\n### MultiplexedSessionPreviousTransactionId\n\n public ByteString MultiplexedSessionPreviousTransactionId { get; set; }\n\nOptional. Clients should pass the transaction ID of the previous\ntransaction attempt that was aborted if this transaction is being\nexecuted on a multiplexed session.\nThis feature is not yet supported and will result in an UNIMPLEMENTED\nerror.\n\n### ReadLockMode\n\n public TransactionOptions.Types.ReadWrite.Types.ReadLockMode ReadLockMode { get; set; }\n\nRead lock mode for the transaction."]]