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

EnvironmentFunctions.GetVariable Method 

[This is preliminary documentation and subject to change.]

Returns the value of the specified environment variable.

[Visual Basic]
<Function(Name:="get-variable")>
Public Shared Function GetVariable( _
   ByVal name As String _
) As String
[C#]
[Function(Name="get-variable")]
public static string GetVariable(
   string name
);

Parameters

name
The environment variable of which the value should be returned.

Return Value

The value of the specified environment variable.

Remarks

Missing <remarks> documentation for M:NAnt.Core.Functions.EnvironmentFunctions.GetVariable(System.String)

Exceptions

Exception Type Condition
ArgumentException Environment variable name does not exist.

See Also

EnvironmentFunctions Class | NAnt.Core.Functions Namespace