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

Argument Class

[This is preliminary documentation and subject to change.]

Represents a command-line argument.

For a list of all members of this type, see Argument Members.

System.Object
   NAnt.Core.Element
      NAnt.Core.Types.Argument

[Visual Basic]
<ElementName(Name:="arg")>
Public Class Argument
    Inherits Element
[C#]
[ElementName(Name="arg")]
public class Argument : Element

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Missing <remarks> documentation for T:NAnt.Core.Types.Argument

Example

A single command-line argument containing a space character.

                
            <arg value="-l -a" />
                
              

Two separate command-line arguments.

                
            <arg line="-l -a" />
                
              

A single command-line argument with the value \dir;\dir2;\dir3 on DOS-based systems and /dir:/dir2:/dir3 on Unix-like systems.

                
            <arg path="/dir;/dir2:\dir3" />
                
              

Requirements

Namespace: NAnt.Core.Types

Assembly: NAnt.Core (in NAnt.Core.dll)

See Also

Argument Members | NAnt.Core.Types Namespace