共用方式為


ObjectModelRoot 物件

這個 $psISE 物件是 Windows PowerShell 整合腳本環境(ISE)中的主要根物件,是 Microsoft.PowerShell.Host.ISE.ObjectModelRoot 類別的實例。 本主題描述 ObjectModelRoot 物件的特性。

屬性

CurrentFile

支援於 Windows PowerShell ISE 2.0 及更新版本。

只讀屬性,取得該檔案,該檔案與目前擁有焦點的主機物件相關聯。

CurrentPowerShellTab

支援於 Windows PowerShell ISE 2.0 及更新版本。

唯讀屬性,會取得帶有焦點的 PowerShell 分頁。

CurrentVisibleHorizontalTool

支援於 Windows PowerShell ISE 2.0 及更新版本。

唯讀屬性,會獲得目前可見的 Windows PowerShell ISE 外掛工具,該工具位於編輯器底部的水平工具窗格中。

CurrentVisibleVerticalTool

支援於 Windows PowerShell ISE 2.0 及更新版本。

唯讀屬性,會獲得目前可見的 Windows PowerShell ISE 附加工具,該工具位於編輯器右側的垂直工具窗格中。

選項

支援於 Windows PowerShell ISE 2.0 及更新版本。

唯讀屬性,提供 Windows PowerShell ISE 中各種可更改設定的選項。

PowerShellTabs

支援於 Windows PowerShell ISE 2.0 及更新版本。

唯讀屬性,能取得 PowerShell 分頁集合,這些分頁在 Windows PowerShell ISE 中是開啟的。 預設情況下,此物件包含一個 PowerShell 分頁。不過,你可以透過腳本或 Windows PowerShell ISE 的選單,為此物件新增更多 PowerShell 分頁。

另請參閱