Windows Powershell属性:描述对象是什么

2019-09-30 14:46:35王旭

Runspace          Property   System.Management.Automation.Runspaces.Runspace Runspace {get;}
UI                Property   System.Management.Automation.Host.PSHostUserInterface UI {get;}
Version           Property   System.Version Version {get;}

在Name列,可以看到$host支持的所有属性。在Definition列首先列出属性的具体类型,然后列出构造器,如果一个构造器中只有Get方法,没有Set方法,表示该属性为只读属性。