IfDefined Property

NAnt SDK Documentation - v0.92 |

# XmlNamespace.IfDefined Property

Indicates if the namespace should be added to the XmlNamespaceManager. If true then the namespace will be added; otherwise, skipped. The default is true.

[Visual Basic]
<BooleanValidator, _ TaskAttribute(Required:=False, Name:="if", ExpandProperties:=True, ProcessXml:=True)>
Public Property IfDefined As Boolean
[C#]
[BooleanValidator]
[TaskAttribute(Required=False, Name="if", ExpandProperties=True, ProcessXml=True)]
public bool IfDefined {get; set;}

#### See Also

XmlNamespace Class | NAnt.Core.Types Namespace