NAnt SDK Documentation - v0.92
TryCatchTask.CatchElement.Property Property
Defines the name of the property to save the message describing the failure that has been caught.
[Visual Basic]
<StringValidator(AllowEmpty:=False, Expression:="null", ExpressionErrorMessage:="null"), _
TaskAttribute(Required:=False, Name:="property", ExpandProperties:=True, ProcessXml:=True)>
Public Property Property As
String
[C#]
[StringValidator(AllowEmpty=False, Expression="null", ExpressionErrorMessage="null")]
[TaskAttribute(Required=False, Name="property", ExpandProperties=True, ProcessXml=True)]
public
string Property {get; set;}
Remarks
The failure message is only available in the context of the catch block. If you wish to preserve the message, you will need to save it into another property.
Readonly properties cannot be overridden by this mechanism.
See Also TryCatchTask.CatchElement Class | NAnt.Core.Tasks Namespace