NAnt SDK Documentation - v0.92 |

# CommandLineArgument.Finish Method

Sets the value of the argument on the specified object.

[Visual Basic]
<ReflectionPermission(Flags:=ReflectionPermissionFlag.NoFlags, TypeInformation:=False, MemberAccess:=False, ReflectionEmit:=False, RestrictedMemberAccess:=False, Action:=SecurityAction.Demand, Unrestricted:=False)>
Public Sub Finish( _
ByVal destination As Object _
)
[C#]
[ReflectionPermission(Flags=ReflectionPermissionFlag.NoFlags, TypeInformation=False, MemberAccess=False, ReflectionEmit=False, RestrictedMemberAccess=False, Action=SecurityAction.Demand, Unrestricted=False)]
public void Finish(
object destination
);

#### Parameters

destination
  The object on which the value of the argument should be set.

#### Exceptions

Exception Type | Condition
--- | ---
CommandLineArgumentException | The argument is required and no value was specified.
NotSupportedException | The matching property is collection-based, but is not initialized and cannot be written to. -or- The matching property is collection-based, but has no strongly-typed Add method. -or- The matching property is collection-based, but the signature of the Add method is not supported.

#### See Also

CommandLineArgument Class | NAnt.Core.Util Namespace