NAnt SDK Documentation - v0.92

PropertyDictionary.AddReadOnly Method 

Adds a property that cannot be changed.

[Visual Basic]
Overridable Public Sub AddReadOnly( _
   ByVal name As String, _
   ByVal value As String _
)
[C#]
public virtual void AddReadOnly(
   string name,
   string value
);

Parameters

name
The name of the property.
value
The value to assign to the property.

Remarks

Properties added with this method can never be changed. Note that they are removed if the Clear method is called.

See Also

PropertyDictionary Class | NAnt.Core Namespace