点击或拖拽改变大小

OperateResultT1, T2, T3, T4, T5, T6, T7, T8, T9

操作结果的泛型类,允许带九个用户自定义的泛型对象,推荐使用这个类
继承层次
SystemObject
  HslCommunicationOperateResult
    HslCommunicationOperateResultT1, T2, T3, T4, T5, T6, T7, T8, T9

命名空间:  HslCommunication
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public class OperateResult<T1, T2, T3, T4, T5, T6, T7, T8, T9> : OperateResult

类型参数

T1
泛型类
T2
泛型类
T3
泛型类
T4
泛型类
T5
泛型类
T6
泛型类
T7
泛型类
T8
泛型类
T9
泛型类

OperateResultT1, T2, T3, T4, T5, T6, T7, T8, T9 类型公开以下成员。

构造函数
属性
  名称说明
公共属性Content1
用户自定义的泛型数据1
公共属性Content2
用户自定义的泛型数据2
公共属性Content3
用户自定义的泛型数据3
公共属性Content4
用户自定义的泛型数据4
公共属性Content5
用户自定义的泛型数据5
公共属性Content6
用户自定义的泛型数据6
公共属性Content7
用户自定义的泛型数据7
公共属性Content8
用户自定义的泛型数据8
公共属性Content9
用户自定义的泛型数据9
公共属性ErrorCode
具体的错误代码。
The specific error code.
(继承自 OperateResult。)
公共属性IsSuccess
指示本次操作是否成功。
Indicates whether this operation was successful.
(继承自 OperateResult。)
公共属性Message
具体的错误描述。
Specific error description.
(继承自 OperateResult。)
Top
方法
  名称说明
公共方法Check(FuncT1, T2, T3, T4, T5, T6, T7, T8, T9, OperateResult)
返回一个检查结果对象,可以进行自定义的数据检查。
Returns a check result object that allows you to perform custom data checks.
公共方法Check(FuncT1, T2, T3, T4, T5, T6, T7, T8, T9, Boolean, String)
返回一个检查结果对象,可以进行自定义的数据检查。
Returns a check result object that allows you to perform custom data checks.
公共方法ConvertT(T)
将当前的结果对象转换到指定泛型的结果类对象,如果当前结果为失败,则返回指定泛型的失败结果类对象
Convert the current result object to the result class object of the specified generic type, if the current result is a failure, then return the result class object of the specified generic type failure
(继承自 OperateResult。)
公共方法ConvertT1, T2, T3, T4, T5, T6, T7, T8, T9, T10(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
将当前的结果对象转换到指定泛型的结果类对象,如果当前结果为失败,则返回指定泛型的失败结果类对象
Convert the current result object to the result class object of the specified generic type, if the current result is a failure, then return the result class object of the specified generic type failure
(继承自 OperateResult。)
公共方法ConvertT1, T2(T1, T2)
将当前的结果对象转换到指定泛型的结果类对象,如果当前结果为失败,则返回指定泛型的失败结果类对象
Convert the current result object to the result class object of the specified generic type, if the current result is a failure, then return the result class object of the specified generic type failure
(继承自 OperateResult。)
公共方法ConvertT1, T2, T3(T1, T2, T3)
将当前的结果对象转换到指定泛型的结果类对象,如果当前结果为失败,则返回指定泛型的失败结果类对象
Convert the current result object to the result class object of the specified generic type, if the current result is a failure, then return the result class object of the specified generic type failure
(继承自 OperateResult。)
公共方法ConvertT1, T2, T3, T4(T1, T2, T3, T4)
将当前的结果对象转换到指定泛型的结果类对象,如果当前结果为失败,则返回指定泛型的失败结果类对象
Convert the current result object to the result class object of the specified generic type, if the current result is a failure, then return the result class object of the specified generic type failure
(继承自 OperateResult。)
公共方法ConvertT1, T2, T3, T4, T5(T1, T2, T3, T4, T5)
将当前的结果对象转换到指定泛型的结果类对象,如果当前结果为失败,则返回指定泛型的失败结果类对象
Convert the current result object to the result class object of the specified generic type, if the current result is a failure, then return the result class object of the specified generic type failure
(继承自 OperateResult。)
公共方法ConvertT1, T2, T3, T4, T5, T6(T1, T2, T3, T4, T5, T6)
将当前的结果对象转换到指定泛型的结果类对象,如果当前结果为失败,则返回指定泛型的失败结果类对象
Convert the current result object to the result class object of the specified generic type, if the current result is a failure, then return the result class object of the specified generic type failure
(继承自 OperateResult。)
公共方法ConvertT1, T2, T3, T4, T5, T6, T7(T1, T2, T3, T4, T5, T6, T7)
将当前的结果对象转换到指定泛型的结果类对象,如果当前结果为失败,则返回指定泛型的失败结果类对象
Convert the current result object to the result class object of the specified generic type, if the current result is a failure, then return the result class object of the specified generic type failure
(继承自 OperateResult。)
公共方法ConvertT1, T2, T3, T4, T5, T6, T7, T8(T1, T2, T3, T4, T5, T6, T7, T8)
将当前的结果对象转换到指定泛型的结果类对象,如果当前结果为失败,则返回指定泛型的失败结果类对象
Convert the current result object to the result class object of the specified generic type, if the current result is a failure, then return the result class object of the specified generic type failure
(继承自 OperateResult。)
公共方法ConvertT1, T2, T3, T4, T5, T6, T7, T8, T9(T1, T2, T3, T4, T5, T6, T7, T8, T9)
将当前的结果对象转换到指定泛型的结果类对象,如果当前结果为失败,则返回指定泛型的失败结果类对象
Convert the current result object to the result class object of the specified generic type, if the current result is a failure, then return the result class object of the specified generic type failure
(继承自 OperateResult。)
公共方法ConvertFailedT
将当前的结果对象转换到指定泛型的结果类对象,直接返回指定泛型的失败结果类对象
Convert the current result object to the result class object of the specified generic type, and directly return the result class object of the specified generic type failure
(继承自 OperateResult。)
公共方法CopyErrorFromOtherTResult
从另一个结果类中拷贝错误信息,主要是针对错误码和错误消息。
Copy error information from another result class, mainly for error codes and error messages.
(继承自 OperateResult。)
公共方法Equals (继承自 Object。)
受保护的方法Finalize (继承自 Object。)
公共方法GetHashCode (继承自 Object。)
公共方法GetType (继承自 Object。)
受保护的方法MemberwiseClone (继承自 Object。)
公共方法Then(FuncOperateResult)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
(继承自 OperateResult。)
公共方法Then(FuncT1, T2, T3, T4, T5, T6, T7, T8, T9, OperateResult)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
公共方法ThenT(FuncOperateResultT)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
(继承自 OperateResult。)
公共方法ThenTResult(FuncT1, T2, T3, T4, T5, T6, T7, T8, T9, OperateResultTResult)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
公共方法ThenT1, T2, T3, T4, T5, T6, T7, T8, T9, T10(FuncOperateResultT1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
(继承自 OperateResult。)
公共方法ThenTResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult9, TResult10(FuncT1, T2, T3, T4, T5, T6, T7, T8, T9, OperateResultTResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult9, TResult10)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
公共方法ThenT1, T2(FuncOperateResultT1, T2)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
(继承自 OperateResult。)
公共方法ThenTResult1, TResult2(FuncT1, T2, T3, T4, T5, T6, T7, T8, T9, OperateResultTResult1, TResult2)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
公共方法ThenT1, T2, T3(FuncOperateResultT1, T2, T3)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
(继承自 OperateResult。)
公共方法ThenTResult1, TResult2, TResult3(FuncT1, T2, T3, T4, T5, T6, T7, T8, T9, OperateResultTResult1, TResult2, TResult3)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
公共方法ThenT1, T2, T3, T4(FuncOperateResultT1, T2, T3, T4)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
(继承自 OperateResult。)
公共方法ThenTResult1, TResult2, TResult3, TResult4(FuncT1, T2, T3, T4, T5, T6, T7, T8, T9, OperateResultTResult1, TResult2, TResult3, TResult4)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
公共方法ThenT1, T2, T3, T4, T5(FuncOperateResultT1, T2, T3, T4, T5)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
(继承自 OperateResult。)
公共方法ThenTResult1, TResult2, TResult3, TResult4, TResult5(FuncT1, T2, T3, T4, T5, T6, T7, T8, T9, OperateResultTResult1, TResult2, TResult3, TResult4, TResult5)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
公共方法ThenT1, T2, T3, T4, T5, T6(FuncOperateResultT1, T2, T3, T4, T5, T6)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
(继承自 OperateResult。)
公共方法ThenTResult1, TResult2, TResult3, TResult4, TResult5, TResult6(FuncT1, T2, T3, T4, T5, T6, T7, T8, T9, OperateResultTResult1, TResult2, TResult3, TResult4, TResult5, TResult6)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
公共方法ThenT1, T2, T3, T4, T5, T6, T7(FuncOperateResultT1, T2, T3, T4, T5, T6, T7)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
(继承自 OperateResult。)
公共方法ThenTResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7(FuncT1, T2, T3, T4, T5, T6, T7, T8, T9, OperateResultTResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
公共方法ThenT1, T2, T3, T4, T5, T6, T7, T8(FuncOperateResultT1, T2, T3, T4, T5, T6, T7, T8)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
(继承自 OperateResult。)
公共方法ThenTResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8(FuncT1, T2, T3, T4, T5, T6, T7, T8, T9, OperateResultTResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
公共方法ThenT1, T2, T3, T4, T5, T6, T7, T8, T9(FuncOperateResultT1, T2, T3, T4, T5, T6, T7, T8, T9)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
(继承自 OperateResult。)
公共方法ThenTResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult9(FuncT1, T2, T3, T4, T5, T6, T7, T8, T9, OperateResultTResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult9)
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
Specify what you want to do next, return the result of the execution of the current object if it succeeds, and return the current object itself if it fails.
公共方法ToMessageShowString
获取错误代号及文本描述。
Get the error code and text description.
(继承自 OperateResult。)
公共方法ToString (继承自 Object。)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见