Summary
Returns the value of the specified environment variable.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Functions - Containing Type
- EnvironmentFunctions
Syntax
[Function("get-variable")]
public static string GetVariable(string name)
Attributes
Type | Description |
---|---|
FunctionAttribute | Indicates that the method should be exposed as a function in NAnt build files. |
Parameters
Name | Type | Description |
---|---|---|
name | string | The environment variable of which the value should be returned. |
Return Value
Type | Description |
---|---|
string | The value of the specified environment variable. |