Mono Class Library: Mono.Unix.Native.Stdlib Overview | Members

Mono.Unix.Native.Stdlib.getenv Method

Read an environment variable.

public static string getenv (string name)

Parameters

name
The environment variable to read.

Returns

The getenv() function returns the value of the environment variable as a string. If the variable name is not in the current environment, null is returned.

Remarks

The getenv() function obtains the current value of the environment variable, name.

Requirements

Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0