IfDefined Property

NAnt SDK Documentation - v0.92 |

# AssemblyAttribute.IfDefined Property

Indicates if the attribute should be generated.

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

#### Property Value

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

#### See Also

AssemblyAttribute Class | NAnt.DotNet.Types Namespace