EnvironmentVariableCollection Class

Summary

Contains a collection of NAnt.Core.Types.EnvironmentVariable elements.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Types
Base Types
  • CollectionBase
graph BT Type-->Base0["CollectionBase"] Type["EnvironmentVariableCollection"] class Type type-node

Syntax

[Serializable()]
public class EnvironmentVariableCollection : CollectionBase

Attributes

Type Description
SerializableAttribute

Constructors

Name Summary
EnvironmentVariableCollection() Initializes a new instance of the NAnt.Core.Types.EnvironmentVariableCollection class.
EnvironmentVariableCollection(EnvironmentVariable[]) Initializes a new instance of the NAnt.Core.Types.EnvironmentVariableCollection class with the specified array of NAnt.Core.Types.EnvironmentVariable instances.
EnvironmentVariableCollection(EnvironmentVariableCollection) Initializes a new instance of the NAnt.Core.Types.EnvironmentVariableCollection class with the specified NAnt.Core.Types.EnvironmentVariableCollection instance.

Properties

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

Methods

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