本主题说明了属于 Windows PowerShell 集成脚本环境 (ISE) 的对象的层次结构。单击对象后,您便会转到定义该对象的 Microsoft.PowerShell.Host.ISE 名称空间中相应类的参考文档。
$psISE Object
$psISE 对象是 Windows PowerShell 集成脚本环境 (ISE) 对象层次结构的根对象。该对象位于顶级,它公开以下四个对象:
$psISE.CurrentFile
$psISE.CurrentPowerShellTab
$psISE.Options
$psISE.PowerShellTabs
$psISE.CurrentFile
$psISE.CurrentFile 对象使以下对象可用于编写脚本:
- $psISE.CurrentFile.DisplayName
- $psISE.CurrentFile.Editor 而 $psISE.CurrentFile.Editor 对象又使以下对象可用于编写脚本:
- $psISE.CurrentFile.Encoding
- $psISE.CurrentFile.FullPath
- $psISE.CurrentFile.IsSaved
- $psISE.CurrentFile.IsUntitled
$psISE.CurrentPowerShellTab
$psISE.CurrentPowerShellTab 对象使以下对象可用于编写脚本:
- $psISE.CurrentPowerShellTab.AddOnsMenu $psISE.CurrentPowerShellTab.AddOnsMenu 对象使以下对象可用于编写脚本:
- $psISE.CurrentPowerShellTab.CanInvoke
- $psISE.CurrentPowerShellTab.CommandPane $psISE.CurrentPowerShellTab.CommandPane 对象使以下对象可用于编写脚本:
- $psISE.CurrentPowerShellTab.DisplayName
- $psISE.CurrentPowerShellTab.ExpandedScript
- $psISE.CurrentPowerShellTab.Files
- $psISE.CurrentPowerShellTab.Output $psISE.CurrentPowerShellTab.Output 对象使以下对象可用于编写脚本:
- $psISE.CurrentPowerShellTab.Prompt
- $psISE.CurrentPowerShellTab.StatusText
$psISE.Options
$psISE.Options 对象使以下对象可用于编写脚本:
- $psISE.Options.CommandPaneBackgroundColor
- $psISE.Options.CommandPaneUp
- $psISE.Options.DebugBackgroundColor
- $psISE.Options.DebugForegroundColor
- $psISE.Options.DefaultOptions
- $psISE.Options.ErrorBackgroundColor
- $psISE.Options.ErrorForegroundColor
- $psISE.Options.FontName
- $psISE.Options.Fontsize
- $psISE.Options.OutputPaneBackgroundColor
- $psISE.Options.OutputPaneTextForegroundColor
- $psISE.Options.OutputPaneTextBackgroundColor
- $psISE.Options.ScriptPaneBackgroundColor
- $psISE.Options.ScriptPaneForegroundColor
- $psISE.Options.SelectedScriptPaneState
- $psISE.Options.ShowToolBar
- $psISE.Options.ShowWarningBeforeSavingOnRun
- $psISE.Options.ShowWarningForDuplicateFiles
- $psISE.Options.TokenColors
- $psISE.Options.UseLocalHelp
- $psISE.Options.VerboseBackgroundColor
- $psISE.Options.VerboseForegroundColor
- $psISE.Options.WarningBackgroundColor
- $psISE.Options.WarningForegroundColor
另请参阅