Quantcast
Channel: Classes in PowerShell 5.0 – SAPIEN Blog
Browsing latest articles
Browse All 8 View Live

Beyond custom objects: Create a .NET class

In yesterday’s blog post, I used the Select-String cmdlet to capture the table of keywords and references from the about_language_keywords help topic and then used the new ConvertFrom-String cmdlet in...

View Article



Find variables with class

Follow @juneb_get_help I’ve been playing with the Windows PowerShell 5.0 preview and especially with its new class feature. After I create my class, I often create several instances of the class and...

View Article

Enumerated Types in Windows PowerShell 5.0

Follow @juneb_get_help [Update: The original post referred to “enums” as “enumerators” when, in fact, they are “enumerated types.” By contrast, enumerators allow you to process items one at a time....

View Article

Hidden … sort of: The Hidden Keyword in PowerShell Classes

The Hidden keyword hides properties and methods (and other members, like events) in a PowerShell class. When a member is hidden, you can still view and change it, but the Get-Member cmdlet doesn’t...

View Article

Why Do We Need Constructors?

While traveling after PowerShell Summit Europe in Stockholm, I was honored to be the guest of the Microsoft Technical User Group in Oslo, Norway (@MTUG_Norge). This well-established user group meets on...

View Article


Creating Objects in Windows PowerShell

Applies to: PowerShell 5.0.10240 I was recently in the beautiful city of Copenhagen, Denmark, where I was the guest of PSUG.DK, PowerShell User Group in Denmark. We met in the swanky Microsoft offices...

View Article

Inheritance in PowerShell Classes

If you’re learning about classes in Windows PowerShell 5.0, one of the first new concepts that you’ll encounter is inheritance. When you create a class that is based on another class, your new subclass...

View Article

Friday Puzzle Solution: What does Return keyword return?

On Friday, February 3, we posted a Friday Puzzle that shows a PowerShell function and a PowerShell class method that contain the same command sequence, including a statement with the Return keyword....

View Article

Browsing latest articles
Browse All 8 View Live




Latest Images