Closes the resource when the user code exits via any
non-ControlException
.
Called after the resource is opened but before the managed value is passed to the code which wants to use it.
Called after the resource is opened but before the managed value is passed to the code which wants to use it. If this throws (or otherwise exits abormally) the resource is closed.
Called after the resource is opened but before the managed value is passed to the code which wants to use it.
Called after the resource is opened but before the managed value is passed to the code which wants to use it. If this throws (or otherwise exits abnormally) the resource is NOT closed.