PowerShell PowerShellの関数に引数を渡す:param・必須入力・型変換の使い分け
PowerShellの関数で、値の渡し方や入力エラーの理由に迷うことがあります。基本は、関数内のparamで値の受取り口を決め、呼出し側で名前を付けて値を渡す方法です。名前付きの最小例から始め、既定値・型変換・必須入力・複数値の扱いを順に確...
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell