Learn PowerShell Classes NOW! Intro to PowerShell Classes

Опубликовано: 29 Март 2024
на канале: PowerShellNerd
428
19

PowerShell classes are Powerful if you learn how to use them. In this video, we cover the basics.
Create a class
Create a constructor
Create some methods

🔔 Subscribe to become a PowerShell Pro!    / @matthewdaugherty462  

00:00 Intro
02:00 Create Class for Car
02:30 Properties for Class
03:50 Constructor explained (empty Constructor)
04:48 Create Car object in PowerShell
05:35 Manually assign object Properties
06:40 Constructor Required Paramters
07:00 Explain $this
10:50 Create Start() Method
14:25 Show start() method in action
17:00 Add Stop() method
18:47 ApiClient Class Overview
23:03 Hidden Property
24:00 Use the Force Luke to see the hidden Properties!


Смотрите видео Learn PowerShell Classes NOW! Intro to PowerShell Classes онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь PowerShellNerd 29 Март 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 428 раз и оно понравилось 19 людям.