OperateResultThenT1, 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.
命名空间:
HslCommunication
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult<T1, T2, T3, T4, T5, T6, T7, T8> Then<T1, T2, T3, T4, T5, T6, T7, T8>(
Func<OperateResult<T1, T2, T3, T4, T5, T6, T7, T8>> func
)
Public Function Then(Of T1, T2, T3, T4, T5, T6, T7, T8) (
func As Func(Of OperateResult(Of T1, T2, T3, T4, T5, T6, T7, T8))
) As OperateResult(Of T1, T2, T3, T4, T5, T6, T7, T8)
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
OperateResult<T1, T2, T3, T4, T5, T6, T7, T8>^ Then(
Func<OperateResult<T1, T2, T3, T4, T5, T6, T7, T8>^>^ func
)
member Then :
func : Func<OperateResult<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8>> -> OperateResult<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8>
参数
- func
- 类型:SystemFuncOperateResultT1, T2, T3, T4, T5, T6, T7, T8
等待当前对象成功后执行的内容
类型参数
- T1
- 泛型参数一
- T2
- 泛型参数二
- T3
- 泛型参数三
- T4
- 泛型参数四
- T5
- 泛型参数五
- T6
- 泛型参数六
- T7
- 泛型参数七
- T8
- 泛型参数八
返回值
类型:
OperateResultT1,
T2,
T3,
T4,
T5,
T6,
T7,
T8返回整个方法链最终的成功失败结果
参见