NAnt SDK Documentation - v0.92 |

# TypeFactory.ScanAssembly Method (Assembly, Task)

Scans the given assembly for tasks, types, functions and filters.

[Visual Basic]
<ReflectionPermission(Flags:=ReflectionPermissionFlag.NoFlags, TypeInformation:=False, MemberAccess:=False, ReflectionEmit:=False, RestrictedMemberAccess:=False, Action:=SecurityAction.Demand, Unrestricted:=False)>
Overloads Public Shared Function ScanAssembly( _
ByVal assembly As Assembly, _
ByVal task As Task _
) As Boolean
[C#]
[ReflectionPermission(Flags=ReflectionPermissionFlag.NoFlags, TypeInformation=False, MemberAccess=False, ReflectionEmit=False, RestrictedMemberAccess=False, Action=SecurityAction.Demand, Unrestricted=False)]
public static bool ScanAssembly(
Assembly assembly,
Task task
);

#### Parameters

assembly
  The assembly to scan for tasks, types, functions and filters.
task
  The Task which will be used to output messages to the build log.

#### Return Value

true if assembly contains at least one "extension"; otherwise, false.

#### See Also

TypeFactory Class | NAnt.Core Namespace | TypeFactory.ScanAssembly Overload List