NAnt SDK Documentation - v0.92

TryCatchTask.CatchBlock Property

The tasks in this block will be executed if any task in the try block fails.

[Visual Basic]
<BuildElement(Name:="catch", Required:=False, ProcessXml:=True)>
Public Property CatchBlock As CatchElement
[C#]
[BuildElement(Name="catch", Required=False, ProcessXml=True)]
public TryCatchTask.CatchElement CatchBlock {get; set;}

See Also

TryCatchTask Class | NAnt.Core.Tasks Namespace