OperateResultTThenTResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult9 方法 (FuncT, 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.
命名空间:
HslCommunication
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult<TResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult9> Then<TResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult9>(
Func<T, OperateResult<TResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult9>> func
)
Public Function Then(Of TResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult9) (
func As Func(Of T, OperateResult(Of TResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult9))
) As OperateResult(Of TResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult9)
public:
generic<typename TResult1, typename TResult2, typename TResult3, typename TResult4, typename TResult5, typename TResult6, typename TResult7, typename TResult8, typename TResult9>
OperateResult<TResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult9>^ Then(
Func<T, OperateResult<TResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult9>^>^ func
)
member Then :
func : Func<'T, OperateResult<'TResult1, 'TResult2, 'TResult3, 'TResult4, 'TResult5, 'TResult6, 'TResult7, 'TResult8, 'TResult9>> -> OperateResult<'TResult1, 'TResult2, 'TResult3, 'TResult4, 'TResult5, 'TResult6, 'TResult7, 'TResult8, 'TResult9>
参数
- func
- 类型:SystemFuncT, OperateResultTResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult9
等待当前对象成功后执行的内容
类型参数
- TResult1
- 泛型参数一
- TResult2
- 泛型参数二
- TResult3
- 泛型参数三
- TResult4
- 泛型参数四
- TResult5
- 泛型参数五
- TResult6
- 泛型参数六
- TResult7
- 泛型参数七
- TResult8
- 泛型参数八
- TResult9
- 泛型参数九
返回值
类型:
OperateResultTResult1,
TResult2,
TResult3,
TResult4,
TResult5,
TResult6,
TResult7,
TResult8,
TResult9返回整个方法链最终的成功失败结果
参见