官术网_书友最值得收藏!

How PowerShell is an object-oriented language and how to work with objects

PowerShell works with objects, and these objects can have attributes and methods. An attribute is a property or a description. PowerShell is an object-oriented scripting language; however, moderately complex scripts are often written using a procedural/functional approach.

To get the members of any cmdlet, we can pipe the Get-Member cmdlet with any given cmdlet:

Get-TimeZone | Get-Member

The output of the preceding command is shown in the following screenshot:

The type of the input is System.String[] and the type of the output is System.TimeZoneInfo[].

主站蜘蛛池模板: 泰宁县| 榕江县| 清水河县| 卢湾区| 余庆县| 株洲市| 铁力市| 许昌市| 福泉市| 灯塔市| 师宗县| 望都县| 古蔺县| 威信县| 昂仁县| 波密县| 泽库县| 邯郸县| 苏尼特右旗| 平湖市| 安徽省| 黄石市| 罗田县| 永福县| 汉川市| 北宁市| 阿克陶县| 清原| 五峰| 平度市| 扎赉特旗| 边坝县| 黄冈市| 亚东县| 威海市| 建瓯市| 霸州市| 新密市| 新巴尔虎右旗| 安国市| 龙南县|