GetErrorMessage メソッド
| 編集/提案 ソースを表示GetErrorMessage()
前回発生したエラーの翻訳されたエラーメッセージを取得します。
宣言
public static string GetErrorMessage()
戻り値
| 型 | 説明 |
|---|---|
| System.String | エラーメッセージを表す文字列です。 |
例外
| 型 | 条件 |
|---|---|
| System.PlatformNotSupportedException |
GetErrorMessage(Int32)
指定したエラーコードの翻訳されたエラーメッセージを取得します。
宣言
public static string GetErrorMessage(int hResult)
引数
| 型 | 名前 | 説明 |
|---|---|---|
| System.Int32 | hResult | エラーコードです。 |
戻り値
| 型 | 説明 |
|---|---|
| System.String | エラーメッセージを表す文字列です。 |
例外
| 型 | 条件 |
|---|---|
| System.PlatformNotSupportedException |