EnvironmentUtility.Remove 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 pathToRemove As String
Dim returnValue As String()

returnValue = EnvironmentUtility.Remove(searchPath, pathToRemove)

Syntax

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

Parameters

  • searchPath
  • pathToRemove

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