EnvironmentUtility.GetUserEnvironmentVariable 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 returnValue As String

returnValue = EnvironmentUtility.GetUserEnvironmentVariable(name)

Syntax

'Declaration
Public Shared Function GetUserEnvironmentVariable ( _
    name As String _
) As String
public static string GetUserEnvironmentVariable (
    string name
)
public:
static String^ GetUserEnvironmentVariable (
    String^ name
)
public static String GetUserEnvironmentVariable (
    String name
)
public static function GetUserEnvironmentVariable (
    name : String
) : String

Parameters

  • name

Return Value

Returns String.

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