NAnt SDK Documentation - v0.92

IfTask.PropertyNameExists Property

NOTE: This property is now obsolete.

Use <if test="${property::exists('propertyname')}"> instead.


Used to test whether a property exists.

[Visual Basic]
<TaskAttribute(Required:=False, Name:="propertyexists", ExpandProperties:=True, ProcessXml:=True), _  Obsolete(Message:="Use <if test="${property::exists('propertyname')}"> instead.", IsError:=False)>
Public Property PropertyNameExists As String
[C#]
[TaskAttribute(Required=False, Name="propertyexists", ExpandProperties=True, ProcessXml=True)]
[Obsolete(Message="Use <if test="${property::exists('propertyname')}"> instead.", IsError=False)]
public string PropertyNameExists {get; set;}

See Also

IfTask Class | NAnt.Core.Tasks Namespace