Captures all Native Resources created using the ResourceScope and at the end of the body, de allocates all the Native resources by calling close on them.
Captures all Native Resources created using the ResourceScope and at the end of the body, de allocates all the Native resources by calling close on them. This method will not deAllocate NativeResources returned from the block.
return type
(Optional). Scope in which to capture the native resources
block of code to execute in this scope
result of the operation, if the result is of type NativeResource, it is not de allocated so the user can use it and then de allocate manually by calling close or enclose in another resourceScope.