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

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[].

主站蜘蛛池模板: 黑龙江省| 莲花县| 西盟| 望奎县| 平果县| 惠来县| 锦屏县| 禄丰县| 青神县| 阳山县| 龙游县| 藁城市| 乐都县| 溧水县| 铁岭市| 岱山县| 甘南县| 喀喇| 崇文区| 绥江县| 南安市| 施秉县| 娱乐| 万全县| 会东县| 阳原县| 大安市| 潞西市| 岚皋县| 沽源县| 澎湖县| 偏关县| 株洲县| 嘉峪关市| 辽源市| 灯塔市| 大田县| 德清县| 云霄县| 建德市| 瑞安市|