ProcessExitCode Struct
Represents a process exit code.
public readonly struct ProcessExitCode : IEquatable<ProcessExitCode>- Implements
Constructors
| Name | Description |
|---|---|
| ProcessExitCode(int) | Represents a process exit code. |
ProcessExitCode(int)
ProcessExitCode.csProperties
| Name | Description |
|---|---|
| IsSuccess | Gets a value indicating whether the process exited successfully. |
| Value | Gets the numeric exit code value. |
IsSuccess
ProcessExitCode.csValue
ProcessExitCode.csMethods
| Name | Description |
|---|---|
| Equals(ProcessExitCode) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Indicates whether this instance and a specified object are equal. |
| GetHashCode() | Returns the hash code for this instance. |
| IsAnyOf(ReadOnlySpan<int>) | Determines whether the exit code matches any of the expected values. |
| ToString() | Returns the fully qualified type name of this instance. |
Equals overloads
Equals(ProcessExitCode)
ProcessExitCode.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(ProcessExitCode other)Parameters
otherProcessExitCode- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
ProcessExitCode.csGetHashCode()
ProcessExitCode.csIsAnyOf(ReadOnlySpan<int>)
ProcessExitCode.csDetermines whether the exit code matches any of the expected values.
public bool IsAnyOf(params scoped ReadOnlySpan<int> expectedValues)Parameters
expectedValuesReadOnlySpan<int>- The expected exit code values.
Returns
bool true if the exit code matches any of the expected values; otherwise, false.
ToString()
ProcessExitCode.csOperators
| Name | Description |
|---|---|
| operator ==(ProcessExitCode, ProcessExitCode) | |
| explicit operator ProcessExitCode(int) | |
| implicit operator int(ProcessExitCode) | |
| operator !=(ProcessExitCode, ProcessExitCode) |
operator ==(ProcessExitCode, ProcessExitCode)
ProcessExitCode.cspublic static bool operator ==(ProcessExitCode left, ProcessExitCode right)No documentation is available.
explicit operator ProcessExitCode(int)
ProcessExitCode.cspublic static explicit operator ProcessExitCode(int value)No documentation is available.
implicit operator int(ProcessExitCode)
ProcessExitCode.cspublic static implicit operator int(ProcessExitCode exitCode)No documentation is available.
operator !=(ProcessExitCode, ProcessExitCode)
ProcessExitCode.cspublic static bool operator !=(ProcessExitCode left, ProcessExitCode right)No documentation is available.