NAnt SDK Documentation - v0.92 |

# PropertyFunctions.IsReadOnly Method

Checks whether the specified property is read-only.

[Visual Basic]
<Function(Name:="is-readonly")>
Public Function IsReadOnly( _
ByVal name As String _
) As Boolean
[C#]
[Function(Name="is-readonly")]
public bool IsReadOnly(
string name
);

#### Parameters

name
  The property to test.

#### Return Value

true if the specified property is read-only; otherwise, false.

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentException | Property name has not been set.

#### Example

Check whether the "debug" property is read-only.

    property::is-readonly('debug')

#### See Also

PropertyFunctions Class | NAnt.Core.Functions Namespace