OperateResultT1, T2, T3, T4, T5, T6, T7, T8, T9, T10ThenTResult 方法 (FuncT1, T2, T3, T4, T5, T6, T7, T8, T9, T10, OperateResultTResult) |
指定接下来要做的是内容,当前对象如果成功,就返回接下来的执行结果,如果失败,就返回当前对象本身。
命名空间:
HslCommunication
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult<TResult> Then<TResult>(
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, OperateResult<TResult>> func
)
Public Function Then(Of TResult) (
func As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, OperateResult(Of TResult))
) As OperateResult(Of TResult)
public:
generic<typename TResult>
OperateResult<TResult>^ Then(
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, OperateResult<TResult>^>^ func
)
member Then :
func : Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, OperateResult<'TResult>> -> OperateResult<'TResult>
参数
- func
- 类型:SystemFuncT1, T2, T3, T4, T5, T6, T7, T8, T9, T10, OperateResultTResult
等待当前对象成功后执行的内容
类型参数
- TResult
- 泛型参数
返回值
类型:
OperateResultTResult返回整个方法链最终的成功失败结果
参见