Summary
Adds a property that cannot be changed.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core - Containing Type
- PropertyDictionary
Syntax
public virtual void AddReadOnly(string name, string value)
Remarks
Properties added with this method can never be changed. Note that
they are removed if the
System.Collections.DictionaryBase.Clear
method is called.
Parameters
Name | Type | Description |
---|---|---|
name | string | The name of the property. |
value | string | The value to assign to the property. |
Return Value
Type | Description |
---|---|
void |