Automatically closes resources when Dispose(bool) is called.
Default
For transactions with pooled resources, releases transactional resources back to the pool
when Dispose(bool) is called.
Otherwise calling Dispose(bool) has no effect on the transaction resources.
[[["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 available for \u003ccode\u003eGoogle.Cloud.Spanner.Data\u003c/code\u003e is \u003ccode\u003e5.0.0-beta05\u003c/code\u003e, and a range of versions from \u003ccode\u003e3.5.0\u003c/code\u003e up to this beta are accessible.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDisposeBehavior\u003c/code\u003e enum defines how \u003ccode\u003eSpannerTransaction\u003c/code\u003e behaves when the \u003ccode\u003eDispose\u003c/code\u003e method is invoked.\u003c/p\u003e\n"],["\u003cp\u003eThere are two fields in the \u003ccode\u003eDisposeBehavior\u003c/code\u003e enum: \u003ccode\u003eCloseResources\u003c/code\u003e, which automatically closes resources on \u003ccode\u003eDispose\u003c/code\u003e calls, and \u003ccode\u003eDefault\u003c/code\u003e, which releases pooled transactional resources or has no effect if resources are not pooled.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDisposeBehavior\u003c/code\u003e can be used to get more information on \u003ccode\u003eSpannerTransaction\u003c/code\u003e's \u003ccode\u003eDispose\u003c/code\u003e function, which has a bool parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provided falls under the \u003ccode\u003eGoogle.Cloud.Spanner.Data\u003c/code\u003e namespace, and is part of the \u003ccode\u003eGoogle.Cloud.Spanner.Data.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]