NAnt SDK Documentation - v0.92 |

# EnvironmentVariableCollection.Add Method

Adds a EnvironmentVariable to the end of the collection.

[Visual Basic]
Public Function Add( _
ByVal item As EnvironmentVariable _
) As Integer
[C#]
public int Add(
EnvironmentVariable item
);

#### Parameters

item
  The EnvironmentVariable to be added to the end of the collection.

#### Return Value

The position into which the new element was inserted.

#### See Also

EnvironmentVariableCollection Class | NAnt.Core.Types Namespace