Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​ComponentModel.​Win32Exception
Assembly: Microsoft.Win32.Primitives
Inheritance: object → Exception → SystemException → Runtime.InteropServices.ExternalException → Win32Exception
Throws an exception for a Win32 error code.
Properties
public
int
NativeErrorCode
Gets the Win32 error code associated with this exception.
public
int
ErrorCode
Data
public
string
HelpLink
public
int
HResult
public
Exception
InnerException
public
string
Message
public
string
Source
public
string
StackTrace
TargetSite
Methods
public
void
GetObjectData​(Runtime.Serialization.SerializationInfo info,
Runtime.Serialization.StreamingContext context)
info
A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> .
context
The contextual information about the source or destination.
Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object with the file name and line number at which this <see cref="T:System.ComponentModel.Win32Exception" /> occurred.
public
string
ToString​() Returns A string that represents the <see cref="P:System.ComponentModel.Win32Exception.NativeErrorCode" /> , or <see cref="P:System.Exception.HResult" /> , or both.
Returns a string that contains the <see cref="P:System.ComponentModel.Win32Exception.NativeErrorCode" /> , or <see cref="P:System.Exception.HResult" /> , or both.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object