OperateResultCreateFailedResultT 方法 (OperateResult) |
创建并返回一个失败的结果对象,该对象复制另一个结果对象的错误信息
命名空间:
HslCommunication
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<T> CreateFailedResult<T>(
OperateResult result
)
Public Shared Function CreateFailedResult(Of T) (
result As OperateResult
) As OperateResult(Of T)
public:
generic<typename T>
static OperateResult<T>^ CreateFailedResult(
OperateResult^ result
)
static member CreateFailedResult :
result : OperateResult -> OperateResult<'T>
参数
- result
- 类型:HslCommunicationOperateResult
之前的结果对象
类型参数
- T
- 目标数据类型
返回值
类型:
OperateResultT带默认泛型对象的失败结果类
参见