NAnt SDK Documentation - v0.92 |

# TargetCollection.Find Method

Finds a target by name.

[Visual Basic]
Public Function Find( _
ByVal targetName As String _
) As Target
[C#]
public Target Find(
string targetName
);

#### Parameters

targetName
  The name of the target to find.

#### Return Value

The Target with the specified name, or a null reference (Nothing in Visual Basic) if no Target exists with the given name.

#### See Also

TargetCollection Class | NAnt.Core Namespace