点击或拖拽改变大小

OperateResultTThen 方法 (FuncT, 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.

命名空间:  HslCommunication
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public OperateResult Then(
	Func<T, OperateResult> func
)

参数

func
类型:SystemFuncT, OperateResult
等待当前对象成功后执行的内容

返回值

类型:OperateResult
返回整个方法链最终的成功失败结果
参见