Method
GetEnvironmentVariable
static func GetEnvironmentVariable(name: string) -> Result<Optional<string>, EnvironmentError>
Declaring type: Environment
Module: System
Assembly: System.Runtime.dll
Source file: Functions.rvn
Reads a variable; absence is None, while invalid names or inaccessible text return an error.
Parameters
| Name | Type | Description |
|---|---|---|
name |
String | The environment variable name. |