L'objet collection PowerShellTab est une collection d'objets PowerShellTab. Il s'agit d'une instance de la classe Microsoft.PowerShell.Host.ISE.PowerShellTabs. L'objet $psISE.PowerShellTabs en est un exemple.

Méthodes

Add()

Ajoute un nouvel onglet PowerShell à la collection. Cette méthode retourne l'onglet venant d'être ajouté.

$psISE.PowerShellTabs.Add()

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

Sélectionne l'onglet PowerShell spécifié par psTab.

psTab
Onglet PowerShell à sélectionner.

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

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

Supprime l'onglet spécifié par psTab.

psTab
Onglet PowerShell à supprimer.

$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)

Voir aussi




Table des matières