public struct Result : IResult
Public Structure Result
Implements IResult
[<SealedAttribute>]
type Result =
struct
inherit ValueType
interface IResult
end
Result(Exception) | 构造函数 |
Result(IResult) | 构造函数 |
Result(ResultCode) | 构造函数 |
Result(ResultCode, String) | 构造函数 |
IsSuccess | 是否成功。一般的当ResultCode为Success时会返回。其余情况返回 |
Message | 结果附加消息 |
ResultCode | 结果代码 |
Equals | Indicates whether this instance and a specified object are equal. (继承自 ValueType。) |
FromCanceled | 创建来自Canceled的Result |
FromError | 创建来自Error的Result |
FromException(Exception) | 根据异常生成结果对象 |
FromException(String) | 创建来自Exception的Result |
FromFail | 创建来自Fail的Result |
FromOvertime | 创建来自Overtime的Result |
FromSuccess | 创建来自Success的Result |
GetHashCode | Returns the hash code for this instance. (继承自 ValueType。) |
GetType | Gets the Type of the current instance. (继承自 Object。) |
ToString | Returns the fully qualified type name of this instance. (重写 ValueTypeToString) |
Canceled | 取消 |
Default | 初始状态 |
Overtime | 超时 |
Success | 成功 |
UnknownFail | 未知失败 |
IsSuccess |
是否成功。
(由 ResultExtensions 定义。) |
Map | (由 Mapper 定义。) |
Map | (由 Mapper 定义。) |
MapTTarget | (由 Mapper 定义。) |
NotSuccess |
是否没有成功。
(由 ResultExtensions 定义。) |
ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |
ToResult |
转换为Result (由 ResultExtensions 定义。) |