Summary
Defines the name of the property to save the message describing
the failure that has been caught.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Tasks - Containing Type
- TryCatchTask
.CatchElement
Syntax
[TaskAttribute("property", Required = false)]
[StringValidator(AllowEmpty = false)]
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.
Attributes
Type | Description |
---|---|
Task |
Indicates that property should be treated as a XML attribute for the task. |
String |
Used to indicate whether a string property should allow
an empty string value or not.
|
Value
Type | Description |
---|---|
string |