TerminateProgramException Class
Represents a program termination.
C#
public sealed class TerminateProgramException : Exception
- Inheritance
- Implements
Constructors
Terminate |
Initializes a new instance of the TerminateProgramException class. |
Terminate |
Initializes a new instance of the TerminateProgramException class. |
Properties
Status |
Gets the status code. |
Data | (Inherited from Exception) |
HelpLink | (Inherited from Exception) |
HResult | (Inherited from Exception) |
InnerException | (Inherited from Exception) |
Message | (Inherited from Exception) |
Source | (Inherited from Exception) |
StackTrace | (Inherited from Exception) |
TargetSite | (Inherited from Exception) |
Methods
GetBaseException() | (Inherited from Exception) |
GetObjectData(SerializationInfo, StreamingContext) | (Inherited from Exception) |
GetType() | (Inherited from Exception) |
ToString() | (Inherited from Exception) |
Equals(object) | (Inherited from object) |
GetHashCode() | (Inherited from object) |
GetType() | (Inherited from object) |
MemberwiseClone() | (Inherited from object) |
Constructors Detail
TerminateProgramException()
Initializes a new instance of the TerminateProgramException class.
C#
public TerminateProgramException()
TerminateProgramException(int)
Initializes a new instance of the TerminateProgramException class.
C#
public TerminateProgramException(int statusCode)
Parameters
- statusCode
- int
The status code.
Properties Detail
StatusCode
Gets the status code.
C#
public int StatusCode { get; }