Win32Exception.ToString 方法

定義

傳回包含 NativeErrorCode,或 HResult,或同時包含兩者的字串。

C#
public override string ToString ();

傳回

表示 NativeErrorCode,或 HResult,或同時表示兩者的字串。

適用於

產品 版本
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1