UtilEnvironmentVariableRegisterVariable(EnvironmentVariableInfo, Boolean) Method
Registers a Windows 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 void RegisterVariable(
EnvironmentVariableInfo EnvironmentVariableInfo,
bool throwOnExistingVariable = false
)
public:
static void RegisterVariable(
EnvironmentVariableInfo^ EnvironmentVariableInfo,
bool throwOnExistingVariable = false
)
static member RegisterVariable :
EnvironmentVariableInfo : EnvironmentVariableInfo *
?throwOnExistingVariable : bool
(* Defaults:
let _throwOnExistingVariable = defaultArg throwOnExistingVariable false
*)
-> unit
No code example is currently available or this language may not be supported.
Parameters
- EnvironmentVariableInfo EnvironmentVariableInfo
-
A EnvironmentVariableInfo object that contains the variable data.
- throwOnExistingVariable Boolean (Optional)
-
If , raises an exception if the variable already exists.
This is a code example.
No code example is currently available or this language may not be supported.
RegisterVariable(
New EnvironmentVariableInfo(EnvironmentVariableTarget.User, "VariableName", "Elektro is the best!"),
throwOnExistingVariable:=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.