EnvironmentUtility.Prepend 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 searchPath As String()
Dim pathToAdd As String
Dim returnValue As String()

returnValue = EnvironmentUtility.Prepend(searchPath, pathToAdd)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Prepend ( _
    searchPath As String(), _
    pathToAdd As String _
) As String()
[ExtensionAttribute] 
public static string[] Prepend (
    string[] searchPath,
    string pathToAdd
)
[ExtensionAttribute] 
public:
static array<String^>^ Prepend (
    array<String^>^ searchPath, 
    String^ pathToAdd
)
/** @attribute ExtensionAttribute() */ 
public static String[] Prepend (
    String[] searchPath, 
    String pathToAdd
)
ExtensionAttribute 
public static function Prepend (
    searchPath : String[], 
    pathToAdd : String
) : String[]

Parameters

  • searchPath
  • pathToAdd

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