Compartilhar via


VmmAddInBase.SetPowerShellContext Method (PowerShellContext)

 

Applies To: System Center 2016 - Virtual Machine Manager

For internal use only. Called by the add-in framework to provide the current add-in reference to the PowerShell context object instance.

Namespace:   Microsoft.SystemCenter.VirtualMachineManager.UIAddIns
Assembly:  Microsoft.SystemCenter.VirtualMachineManager.UIAddIns (in Microsoft.SystemCenter.VirtualMachineManager.UIAddIns.dll)

Syntax

public void SetPowerShellContext(
    PowerShellContext powerShellContext
)
public:
void SetPowerShellContext(
    PowerShellContext^ powerShellContext
)
member SetPowerShellContext : 
        powerShellContext:PowerShellContext -> unit
Public Sub SetPowerShellContext (
    powerShellContext As PowerShellContext
)

Parameters

  • powerShellContext
    Type: Microsoft.SystemCenter.VirtualMachineManager.UIAddIns.PowerShell.PowerShellContext

    Type: Microsoft.SystemCenter.VirtualMachineManager.UIAddIns.PowerShell.PowerShellContext

    The PowerShell context object.

Remarks

This method is for internal use only.

The PowerShell context object provides access to PowerShell and can be accessed by the PowerShellContext property.

Notes to Callers:

This method should only be called by the add-in framework.

If this method is called by an add-in, the InvalidOperationException exception will be thrown.

See Also

VmmAddInBase Class
Microsoft.SystemCenter.VirtualMachineManager.UIAddIns Namespace

Return to top