How to find PowerShell Static Classes and Methods?

后端 未结 4 404
忘掉有多难
忘掉有多难 2021-01-03 14:34

How can I find what Static Classes and Methods there is available in PowerShell 2.0?

4条回答
  •  Happy的楠姐
    2021-01-03 15:29

    To get the static members of a type or object, pipe it to Get-Member and specify the Static switch:

    [math] | Get-Member -Static
    

提交回复
热议问题