Glossary:Definition - finally block
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| Term | finally block | |
| Definition | Block of statements to be executed regardless of whether or not an exception is thrown. Associated with either a try or a try-catch block. Used to guarantee an operation will be performed despite any exceptions thrown, e.g., releasing a database connection.
| |
| See also | try/catch block
| |
| This C# Online.NET definition is from the Glossary of .NET / C# Terms. | ||