Request.SetEnvironmentVariable Method

This element is introduced in Windows PowerShell 5.0.

Namespace: Microsoft.OneGet.MetaProvider.PowerShell
Assembly: Microsoft.OneGet.MetaProvider.PowerShell (in Microsoft.OneGet.MetaProvider.PowerShell.dll)

Usage

'Usage
Dim instance As Request
Dim variable As String
Dim value As String
Dim context As Integer
Dim requestImpl As MarshalByRefObject

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

Syntax

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

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

Request Class
Request Members
Microsoft.OneGet.MetaProvider.PowerShell Namespace