public sealed class BeginTransactionRequest : IMessage<BeginTransactionRequest>, IEquatable<BeginTransactionRequest>, IDeepCloneable<BeginTransactionRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Spanner v1 API class BeginTransactionRequest.
The request for [BeginTransaction][google.spanner.v1.Spanner.BeginTransaction].
public RequestOptions RequestOptions { get; set; }
Common options for this request.
Priority is ignored for this request. Setting the priority in this
request_options struct will not do anything. To set the priority for a
transaction, set it on the reads and writes that are part of this
transaction instead.
[[["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\u003eBeginTransactionRequest\u003c/code\u003e class is part of the Google Cloud Spanner v1 API and is used to initiate a transaction.\u003c/p\u003e\n"],["\u003cp\u003eThis class is implemented as a sealed class in the \u003ccode\u003eGoogle.Cloud.Spanner.V1\u003c/code\u003e namespace, and it inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces including \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 \u003ccode\u003eBeginTransactionRequest\u003c/code\u003e class contains properties for \u003ccode\u003eOptions\u003c/code\u003e, \u003ccode\u003eRequestOptions\u003c/code\u003e, and \u003ccode\u003eSession\u003c/code\u003e, which define the transaction's parameters and the session it runs in.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eBeginTransactionRequest\u003c/code\u003e is \u003ccode\u003e5.0.0-beta05\u003c/code\u003e, with numerous other versions, starting from \u003ccode\u003e3.5.0\u003c/code\u003e, being available for use.\u003c/p\u003e\n"],["\u003cp\u003eThe current page is related to version \u003ccode\u003e4.3.0\u003c/code\u003e of the \u003ccode\u003eBeginTransactionRequest\u003c/code\u003e, with the code showing the use of the constructor, and the different properties such as \u003ccode\u003eOptions\u003c/code\u003e, \u003ccode\u003eRequestOptions\u003c/code\u003e, \u003ccode\u003eSession\u003c/code\u003e, and \u003ccode\u003eSessionAsSessionName\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]