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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This documentation page covers the `DisposeBehavior` enum within the `Google.Cloud.Spanner.Data` namespace, outlining its role in managing the disposal of `SpannerTransaction` objects."],["The `DisposeBehavior` enum, found in the `Google.Cloud.Spanner.Data.dll` assembly, has fields `CloseResources` and `Default` to dictate the actions when the `Dispose` method is called."],["The latest version of this documentation is for 5.0.0-beta05, with beta04 directly below, followed by numerous older versions starting at 4.6.0 and going as far back as 3.5.0."],["`CloseResources` ensures resources are automatically closed upon calling `Dispose(bool)`, whereas `Default` either releases transactional resources back to the pool or does nothing, depending on if they are pooled."]]],[]]