Observação
O acesso a essa página exige autorização. Você pode tentar entrar ou alterar diretórios.
O acesso a essa página exige autorização. Você pode tentar alterar os diretórios.
O objeto de coleção PowerShellTab é uma coleção de objetos PowerShellTab . Cada objeto PowerShellTab funciona como um ambiente de execução separado. É uma instância da classe Microsoft.PowerShell.Host.ISE.PowerShellTabs. Um exemplo é o $psISE.PowerShellTabs objeto.
Methods
Add()
Suportado no Windows PowerShell ISE 2.0 e versões posteriores.
Adiciona uma nova aba PowerShell à coleção. Ele retorna a aba recém-adicionada.
$newTab = $psISE.PowerShellTabs.Add()
$newTab.DisplayName = 'Brand New Tab'
Remove(Microsoft.PowerShell.Host.ISE.PowerShellTab psTab)
Suportado no Windows PowerShell ISE 2.0 e versões posteriores.
Remove a aba especificada pelo parâmetro psTab .
- psTab - A aba PowerShell para remover.
$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)
SetSelectedPowerShellTab(Microsoft.PowerShell.Host.ISE.PowerShellTab psTab)
Suportado no Windows PowerShell ISE 2.0 e versões posteriores.
Seleciona a aba PowerShell especificada pelo parâmetro psTab para torná-la a aba PowerShell ativa.
- psTab - A aba PowerShell para selecionar.
# Save the current tab in a variable and rename it
$oldTab = $psISE.CurrentPowerShellTab
$psISE.CurrentPowerShellTab.DisplayName = 'Old Tab'
# Create a new tab and give it a new display name
$newTab = $psISE.PowerShellTabs.Add()
$newTab.DisplayName = 'Brand New Tab'
# Switch back to the original tab
$psISE.PowerShellTabs.SelectedPowerShellTab = $oldTab