Win32Exception.ToString Method

Definition

Returns a string that contains the NativeErrorCode, or HResult, or both.

public override string ToString ();

Returns

A string that represents the NativeErrorCode, or HResult, or both.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1