EnvironmentUtility.GetSystemEnvironmentVariable 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.GetSystemEnvironmentVariable(name)

Syntax

'Declaration
Public Shared Function GetSystemEnvironmentVariable ( _
    name As String _
) As String
public static string GetSystemEnvironmentVariable (
    string name
)
public:
static String^ GetSystemEnvironmentVariable (
    String^ name
)
public static String GetSystemEnvironmentVariable (
    String name
)
public static function GetSystemEnvironmentVariable (
    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