NAnt SDK Documentation - v0.85-nightly-2005-11-09

PropertyFunctions.IsReadOnly Method 

[This is preliminary documentation and subject to change.]

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.

Remarks

Missing <remarks> documentation for M:NAnt.Core.Functions.PropertyFunctions.IsReadOnly(System.String)

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