UtilEnvironmentVariableGetValue Method
Returns the value of the specified environment variable.
Namespace: DevCase.Core.Windows.CommonAssembly: 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
)
Public Shared Function GetValue (
scope As EnvironmentVariableTarget,
name As String
) As String
Dim scope As EnvironmentVariableTarget
Dim name As String
Dim returnValue As String
returnValue = UtilEnvironmentVariable.GetValue(scope,
name)
public:
static String^ GetValue(
EnvironmentVariableTarget scope,
String^ name
)
static member GetValue :
scope : EnvironmentVariableTarget *
name : string -> string
No code example is currently available or this language may not be supported.
- scope EnvironmentVariableTarget
-
The environment scope that owns the variable.
- name String
-
The variable name.
String
The value of the specified environment variable.
This is a code example.
No code example is currently available or this language may not be supported.
GetValue(EnvironmentVariableTarget.User, "System32", throwOnMissingVariable:=True)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
ArgumentNullException
|
name
|
InvalidEnumArgumentException
|
scope
|
ArgumentException
|
The specified variable doesn't exists.;name
|