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

属性可以描述一个对象,对象的属性可以被Powershell自动转换成文本,并且输出到控制台。因此可以通过这种方法查看任何对象,例如$host:

PS C:Powershell> $host

Name              : ConsoleHost

Version           : 2.0

InstanceId            : 7fefa1fa-fb2e-47c7-a867-c13b123da5c2

UI                : System.Management.Automation.Internal.Host.InternalHostUserInterface

CurrentCulture    : zh-CN

CurrentUICulture  : zh-CN

PrivateData       : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy

IsRunspacePushed  : False

Runspace          : System.Management.Automation.Runspaces.LocalRunspace

以上是 Windows Powershell属性:描述对象是什么 的全部内容, 来源链接: utcz.com/z/334450.html

回到顶部