UtilEnvironmentVariableGetValue Method

Returns the value of the specified environment variable.

Definition

Namespace: DevCase.Core.Windows.Common
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string GetValue(
	EnvironmentVariableTarget scope,
	string name
)

Parameters

scope  EnvironmentVariableTarget
The environment scope that owns the variable.
name  String
The variable name.

Return Value

String
The value of the specified environment variable.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Exceptions

ArgumentNullException name
InvalidEnumArgumentException scope
ArgumentException The specified variable doesn't exists.;name

See Also