PowerTip: Find Class Constructors in PowerShell 5

Doctor Scripto

Summary: Learn how to easily find class constructors.

Hey, Scripting Guy! Question How can I use Windows PowerShell 5.0 to find the constructor overloads for a new class I want to create?

Hey, Scripting Guy! Answer Place the class in square brackets, and call the static New method with no parentheses, for example:



Discussion is closed.

Feedback usabilla icon