Detaches from the transaction and leaves resources still allocated. You must set
DisposeBehavior to CloseResources on at least one
instance to ensure there are no resource leaks when doing parallel reads.
[[["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 document provides reference information for the `DisposeBehavior` enum within the `Google.Cloud.Spanner.Data` namespace, specifically in version 4.2.0 of the .NET library."],["The `DisposeBehavior` enum defines how `SpannerTransaction` objects handle resource management when the `Dispose` method is called."],["There are three `DisposeBehavior` fields available: `CloseResources`, which automatically closes resources; `Detach`, which detaches from the transaction but leaves resources allocated; and `ReleaseToPool`, which returns resources to the global pool."],["The latest version of the documentation is 5.0.0-beta05, and there are several other version available for browsing."],["The `DisposeBehavior` is important to set correctly, especially when using parallel reads, to avoid resource leaks."]]],[]]