CommandLineArgumentCollection Class

Summary

Contains a strongly typed collection of NAnt.Core.Util.CommandLineArgument objects.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Util
Base Types
  • CollectionBase
graph BT Type-->Base0["CollectionBase"] Type["CommandLineArgumentCollection"] class Type type-node

Syntax

[Serializable]
public class CommandLineArgumentCollection : CollectionBase

Attributes

Type Description
SerializableAttribute

Constructors

Name Summary
CommandLineArgumentCollection() Initializes a new instance of the NAnt.Core.Util.CommandLineArgumentCollection class.
CommandLineArgumentCollection(CommandLineArgument[]) Initializes a new instance of the NAnt.Core.Util.CommandLineArgumentCollection class with the specified array of NAnt.Core.Util.CommandLineArgument instances.
CommandLineArgumentCollection(CommandLineArgumentCollection) Initializes a new instance of the NAnt.Core.Util.CommandLineArgumentCollection class with the specified NAnt.Core.Util.CommandLineArgumentCollection instance.

Properties

Name Value Summary
this[int] CommandLineArgument
Gets or sets the element at the specified index.
this[string] CommandLineArgument
Gets the NAnt.Core.Util.CommandLineArgument with the specified name.

Methods

Name Value Summary
Add(CommandLineArgument) int
Adds a NAnt.Core.Util.CommandLineArgument to the end of the collection.
AddRange(CommandLineArgument[]) void
Adds the elements of a NAnt.Core.Util.CommandLineArgument array to the end of the collection.
AddRange(CommandLineArgumentCollection) void
Adds the elements of a NAnt.Core.Util.CommandLineArgumentCollection to the end of the collection.
Contains(CommandLineArgument) bool
Determines whether a NAnt.Core.Util.CommandLineArgument is in the collection.
CopyTo(CommandLineArgument[], int) void
Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.
GetEnumerator() CommandLineArgumentEnumerator
Returns an enumerator that can iterate through the collection.
IndexOf(CommandLineArgument) int
Retrieves the index of a specified NAnt.Core.Util.CommandLineArgument object in the collection.
Insert(int, CommandLineArgument) void
Inserts a NAnt.Core.Util.CommandLineArgument into the collection at the specified index.
Remove(CommandLineArgument) void
Removes a member from the collection.