FinallyBlock Property

NAnt SDK Documentation - v0.92 |

# TryCatchTask.FinallyBlock Property

The tasks in this block will always be executed, regardless of what happens in the try and catch blocks.

[Visual Basic]
<BuildElement(Name:="finally", Required:=False, ProcessXml:=True)>
Public Property FinallyBlock As ElementContainer
[C#]
[BuildElement(Name="finally", Required=False, ProcessXml=True)]
public NAnt.Core.ElementContainer FinallyBlock {get; set;}

#### Remarks

Note that any failure in any of the tasks in this block will prevent any subsequent tasks from executing.

#### See Also

TryCatchTask Class | NAnt.Core.Tasks Namespace