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.
Assembly: Microsoft.SystemCenter.VirtualMachineManager.UIAddIns (in Microsoft.SystemCenter.VirtualMachineManager.UIAddIns.dll)
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.
Show: