IfDefined Property

NAnt SDK Documentation - v0.92 |

# NamespaceImport.IfDefined Property

Indicates if the import should be generated.

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

#### Property Value

true if the import should be generated; otherwise, false.

#### See Also

NamespaceImport Class | NAnt.DotNet.Types Namespace