February 2019
Intermediate to advanced
626 pages
15h 51m
English
As we mentioned previously, methods effect a change in state. That may be a change to the object associated with the method, or it may take the object and convert it into something else.
Methods are called using the following notation in PowerShell:
<Object>.Method()
If a method expects to have arguments (or parameters), the notation becomes the following:
<Object>.Method(Argument1, Argument2)
When the method is called without parentheses, PowerShell will show the overload definitions. The overload definitions are a list of the different sets of arguments that can be used with a method. For example, the Substring method of System.String has two definitions:
PS> 'thisString'.SubstringOverloadDefinitions-------------------
Read now
Unlock full access