VmmAddInBase::SetPowerShellContext Method (PowerShellContext^)

System Center
 

Updated: June 20, 2017

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)

public:
void SetPowerShellContext(
	PowerShellContext^ powerShellContext
)

Parameters

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

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

The PowerShell context object.

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.

Return to top
Show: