Click or drag to resize

NeonServiceGetEnvironmentVariable Method

Returns the value of an environment variable.

Namespace:  Neon.Service
Assembly:  Neon.Service (in Neon.Service.dll) Version: 2.10.0
Syntax
public string GetEnvironmentVariable(
	string name,
	string def = null
)

Parameters

name
Type: SystemString
The environment variable name (case sensitive).
def (Optional)
Type: SystemString
The value to be returned when the environment variable doesn't exist (defaults to null).

Return Value

Type: String
The variable value or def if the variable doesn't exist.
See Also