L'oggetto raccolta PowerShellTab è una raccolta di oggetti PowerShellTab. Si tratta di un'istanza della classe Microsoft.PowerShell.Host.ISE.PowerShellTabs. Un esempio è rappresentato dall'oggetto $psISE.PowerShellTabs.

Metodi

Add()

Aggiunge una nuova scheda di PowerShell alla raccolta. Restituisce la scheda appena aggiunta.

$psISE.PowerShellTabs.Add()

SetSelectedPowerShellTab(Microsoft.PowerShell.Host.ISE.PowerShellTab psTab)

Seleziona la scheda di PowerShell specificata da pstab.

psTab
La scheda di PowerShell da selezionare.

$newTab = $psISE.PowerShellTabs.Add()
# Change the DisplayName of the new PowerShell tab. 
$newTab.DisplayName="Brand New Tab" 

Remove(Microsoft.PowerShell.Host.ISE.PowerShellTab psTab)

Rimuove la scheda specificata da pstab.

psTab
La scheda di 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)

Vedere anche




Argomenti della Guida