UtilEnvironmentVariableUnregisterVariable(EnvironmentVariableInfo, Boolean) Method
Unregisters 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 UnregisterVariable(
EnvironmentVariableInfo EnvironmentVariableInfo,
bool throwOnMissingVariable = false
)
public:
static void UnregisterVariable(
EnvironmentVariableInfo^ EnvironmentVariableInfo,
bool throwOnMissingVariable = false
)
static member UnregisterVariable :
EnvironmentVariableInfo : EnvironmentVariableInfo *
?throwOnMissingVariable : bool
(* Defaults:
let _throwOnMissingVariable = defaultArg throwOnMissingVariable 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.
- throwOnMissingVariable Boolean (Optional)
-
If , raises an exception if the variable doesn't exists.
This is a code example.
No code example is currently available or this language may not be supported.
UnregisterVariable(EnvironmentVariableTarget.User, "VariableName", 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
|