NAnt SDK Documentation - v0.92 |

# TaskFunctions.GetAssembly Method

Returns the Assembly from which the specified task was loaded.

[Visual Basic]
<Function(Name:="get-assembly")>
Public Function GetAssembly( _
ByVal name As String _
) As Assembly
[C#]
[Function(Name="get-assembly")]
public Assembly GetAssembly(
string name
);

#### Parameters

name
  The name of the task to get the Assembly of.

#### Return Value

The Assembly from which the specified task was loaded.

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentException | Task name is not available.

#### See Also

TaskFunctions Class | NAnt.Core.Functions Namespace