Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
L'oggetto ISEAddOnToolCollection è una raccolta di oggetti ISEAddOnTool . Un esempio è l'oggetto $psISE.CurrentPowerShellTab.VerticalAddOnTools .
Methods
Add( Name, ControlType, [IsVisible] )
Supportato in Windows PowerShell ISE 3.0 e successivi, e non presente nelle versioni precedenti.
Aggiunge un nuovo strumento aggiuntivo alla collezione. Restituisce il nuovo strumento aggiunto. Prima di eseguire questo comando, devi installare lo strumento aggiuntivo sul computer locale e caricare l'assemblaggio.
- Nome - Stringa - Specifica il nome visualizzato dello strumento aggiuntivo a Windows PowerShell ISE.
- ControlType - Tipo - Specifica il controllo aggiunto.
-
[IsVisible] - booleano opzionale - Se impostato su
$true, lo strumento aggiuntivo è immediatamente visibile nel pannello degli strumenti associato.
# Load a DLL with an add-on and then add it to the ISE
[Reflection.Assembly]::LoadFile("C:testISESimpleSolutionISESimpleSolution.dll")
$psISE.CurrentPowerShellTab.VerticalAddOnTools.Add("Solutions", [ISESimpleSolution.Solution], $true)
Remove(Item)
Supportato in Windows PowerShell ISE 3.0 e successivi, e non presente nelle versioni precedenti.
Rimuove lo strumento aggiuntivo specificato dalla collezione.
- Elemento - Microsoft.PowerShell.Host.ISE.ISEAddOnTool - Specifica l'oggetto da rimuovere da Windows PowerShell ISE.
# Load a DLL with an add-on and then add it to the ISE
[Reflection.Assembly]::LoadFile("C:\test\ISESimpleSolution\ISESimpleSolution.dll")
$psISE.CurrentPowerShellTab.VerticalAddOnTools.Add("Solutions", [ISESimpleSolution.Solution], $true)
SetSelectedPowerShellTab(psTab)
Supportato in Windows PowerShell ISE 3.0 e successivi, e non presente nelle versioni precedenti.
Seleziona la scheda PowerShell specificata dal parametro psTab .
- psTab - Microsoft.PowerShell.Host.ISE.PowerShellTab -The scheda PowerShell da selezionare.
$newTab = $psISE.PowerShellTabs.Add()
# Change the DisplayName of the new PowerShell tab.
$newTab.DisplayName = 'Brand New Tab'
Remove(psTab)
Supportato in Windows PowerShell ISE 3.0 e successivi, e non presente nelle versioni precedenti.
Rimuove la scheda PowerShell specificata dal parametro psTab .
- psTab - Microsoft.PowerShell.Host.ISE.PowerShellTab - La scheda PowerShell da rimuovere.
$newTab = $psISE.PowerShellTabs.Add()
Change the DisplayName of the new PowerShell tab.
$newTab.DisplayName = 'This tab will go away in 5 seconds'
sleep 5
$psISE.PowerShellTabs.Remove($newTab)