NAnt SDK Documentation - v0.92

PropertyTask.ReadOnly Property

Specifies whether the property is read-only or not. The default is false.

[Visual Basic]
<TaskAttribute(Required:=False, Name:="readonly", ExpandProperties:=True, ProcessXml:=True), _  BooleanValidator>
Public Property ReadOnly As Boolean
[C#]
[TaskAttribute(Required=False, Name="readonly", ExpandProperties=True, ProcessXml=True)]
[BooleanValidator]
public bool ReadOnly {get; set;}

See Also

PropertyTask Class | NAnt.Core.Tasks Namespace