Share via


CommonServicesProvider.SetEnvironmentVariable Method

This element is introduced in Windows PowerShell 5.0.

Namespace: Microsoft.OneGet.ServicesProvider.Common
Assembly: Microsoft.OneGet.ServicesProvider.Common (in Microsoft.OneGet.ServicesProvider.Common.dll)

Usage

'Usage
Dim instance As CommonServicesProvider
Dim variable As String
Dim value As String
Dim context As Integer
Dim requestImpl As Object

instance.SetEnvironmentVariable(variable, value, context, requestImpl)

Syntax

'Declaration
Public Sub SetEnvironmentVariable ( _
    variable As String, _
    value As String, _
    context As Integer, _
    requestImpl As Object _
)
public void SetEnvironmentVariable (
    string variable,
    string value,
    int context,
    Object requestImpl
)
public:
void SetEnvironmentVariable (
    String^ variable, 
    String^ value, 
    int context, 
    Object^ requestImpl
)
public void SetEnvironmentVariable (
    String variable, 
    String value, 
    int context, 
    Object requestImpl
)
public function SetEnvironmentVariable (
    variable : String, 
    value : String, 
    context : int, 
    requestImpl : Object
)

Parameters

  • variable
  • value
  • context
  • requestImpl

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

CommonServicesProvider Class
CommonServicesProvider Members
Microsoft.OneGet.ServicesProvider.Common Namespace