February 2019
Intermediate to advanced
626 pages
15h 51m
English
As static properties, static methods do not require that an instance of a class is created.
MSDN shows static methods using an S symbol in the leftmost column. For example, the System.Net.NetworkInformation.NetworkInterface class has a number of static methods. The first of these is shown in the following screenshot:

PowerShell is also able to list these methods using Get-Member with the Static switch, as shown here:
PS> [System.Net.NetworkInformation.NetworkInterface] | Get-Member -MemberType Method -Static TypeName: System.Net.NetworkInformation.NetworkInterfaceName MemberType Definition---- ---------- ----------Equals Method ...
Read now
Unlock full access