Status
Status class
Indicates the result of an operation.
public class Status : CommandStatus, IEquatable<Status>
Constructors
| Name |
Description |
| Status(Status) |
Initializes a new instance of the Status class. |
| Status(string) |
Initializes a new instance of the Status class. Status code is initialized with 0 value. |
| Status(int, string) |
Initializes a new instance of the Status class. |
Properties
| Name |
Description |
| virtual Description { get; } |
Contains status description |
| virtual StatusCode { get; } |
Contains status code |
Methods
| Name |
Description |
| static GetStatus(int) |
Gets status by code. |
| static GetStatus(CommandCodes, int) |
Gets status by code. |
| static GetStatus(CommandCodes, string) |
Gets status by code. |
| static GetStatus(CommandCodes, int, int) |
Gets status by code. |
| static GetStatus(CommandCodes, string, int) |
Gets status by code. |
| override Equals(object) |
Determines whether the specified object is equal to the current object. |
| virtual Equals(Status) |
Determines whether the specified object is equal to the current object. |
| override GetHashCode() |
Serves as a hash function for a particular type. |
| override ToString() |
Returns a string that represents the current object. |
| operator == |
The inequality operator (==) returns true if its operands are equal, false otherwise. |
| implicit operator |
Converts status to int value |
| operator != |
The inequality operator (!=) returns false if its operands are equal, true otherwise. |
See Also