UtilEnvironmentVariableUnregisterVariable(EnvironmentVariableTarget, String, 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(
EnvironmentVariableTarget scope,
string name,
bool throwOnMissingVariable = false
)
Public Shared Sub UnregisterVariable (
scope As EnvironmentVariableTarget,
name As String,
Optional throwOnMissingVariable As Boolean = false
)
Dim scope As EnvironmentVariableTarget
Dim name As String
Dim throwOnMissingVariable As Boolean
UtilEnvironmentVariable.UnregisterVariable(scope, name,
throwOnMissingVariable)
public:
static void UnregisterVariable(
EnvironmentVariableTarget scope,
String^ name,
bool throwOnMissingVariable = false
)
static member UnregisterVariable :
scope : EnvironmentVariableTarget *
name : string *
?throwOnMissingVariable : bool
(* Defaults:
let _throwOnMissingVariable = defaultArg throwOnMissingVariable false
*)
-> unit
No code example is currently available or this language may not be supported.
Parameters
- scope EnvironmentVariableTarget
-
The environment scope that owns the variable.
- name String
-
The variable name.
- 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
|