メソッド検索

MSDNを見なくても、メソッド検索・・・。

利用可能なメソッドを検索する

指定文字列と同一のメソッドを検索する(大文字小文字区別なし)
$method = "display"
[AppDomain]::CurrentDomain.GetAssemblies() | foreach{
    $_.GetTypes() | foreach{
        $_.GetMethods()|where {$_.Name -like $method}}}
指定文字列を含むメソッドを検索する
$method = "get_ExceptionObject"
[AppDomain]::CurrentDomain.GetAssemblies() | foreach{
    $_.GetTypes() | foreach{
        $_.GetMethods()|where {$_.Name -match $method}}}