EnvironmentUtility.SetUserEnvironmentVariable Method
This element is introduced in Windows PowerShell 5.0.
Namespace: Microsoft.OneGet.Utility.Platform
Assembly: Microsoft.OneGet.Utility (in Microsoft.OneGet.Utility.dll)
Usage
'Usage
Dim name As String
Dim value As String
EnvironmentUtility.SetUserEnvironmentVariable(name, value)
Syntax
'Declaration
Public Shared Sub SetUserEnvironmentVariable ( _
name As String, _
value As String _
)
public static void SetUserEnvironmentVariable (
string name,
string value
)
public:
static void SetUserEnvironmentVariable (
String^ name,
String^ value
)
public static void SetUserEnvironmentVariable (
String name,
String value
)
public static function SetUserEnvironmentVariable (
name : String,
value : String
)
Parameters
- name
- value
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
See Also
Reference
EnvironmentUtility Class
EnvironmentUtility Members
Microsoft.OneGet.Utility.Platform Namespace