GetCommandName メソッド
| 編集/提案 ソースを表示GetCommandName(Switch[])
指定されたコマンド行引数を表すスイッチの配列からコマンド名を取得します。
宣言
public static string GetCommandName(this Switch[] switches)
引数
| 型 | 名前 | 説明 |
|---|---|---|
| Switch[] | switches | コマンド行引数を表すスイッチの配列です。 |
戻り値
| 型 | 説明 |
|---|---|
| System.String | コマンド行引数で指定されているコマンド名、または、指定されていない場合はnullを返します。 |
例外
| 型 | 条件 |
|---|---|
| System.ArgumentNullException |