NAnt SDK Documentation - v0.92 |

# ChooseTask.When Class

Groups a set of tasks to execute when a condition is met.

For a list of all members of this type, see ChooseTask.When Members.

System.Object
NAnt.Core.Element
NAnt.Core.ElementContainer
NAnt.Core.Tasks.ChooseTask.When

[Visual Basic]
Public Class ChooseTask.When
Inherits ElementContainer
[C#]
public class ChooseTask.When : ElementContainer

#### Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

#### Requirements

Namespace: NAnt.Core.Tasks

Assembly: NAnt.Core (in NAnt.Core.dll)

#### See Also

ChooseTask.When Members | NAnt.Core.Tasks Namespace