NAnt SDK Documentation - v0.85-nightly-2005-11-09

TargetFunctions.GetCurrentTarget Method 

[This is preliminary documentation and subject to change.]

Gets the name of the target being executed.

[Visual Basic]
<Function(Name:="get-current-target")>
Public Function GetCurrentTarget() As String
[C#]
[Function(Name="get-current-target")]
public string GetCurrentTarget();

Return Value

A String that contains the name of the target being executed.

Remarks

Missing <remarks> documentation for M:NAnt.Core.Functions.TargetFunctions.GetCurrentTarget

Exceptions

Exception Type Condition
InvalidOperationException No target is being executed.

See Also

TargetFunctions Class | NAnt.Core.Functions Namespace