OperateResultCreateFailedResultT1, T2, T3, T4, T5, T6, T7, T8, T9, T10 方法 (OperateResult) |
创建并返回一个失败的结果对象,该对象复制另一个结果对象的错误信息
命名空间:
HslCommunication
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> CreateFailedResult<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(
OperateResult result
)
Public Shared Function CreateFailedResult(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) (
result As OperateResult
) As OperateResult(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9, typename T10>
static OperateResult<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>^ CreateFailedResult(
OperateResult^ result
)
static member CreateFailedResult :
result : OperateResult -> OperateResult<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10>
参数
- result
- 类型:HslCommunicationOperateResult
之前的结果对象
类型参数
- T1
- 目标数据类型一
- T2
- 目标数据类型二
- T3
- 目标数据类型三
- T4
- 目标数据类型四
- T5
- 目标数据类型五
- T6
- 目标数据类型六
- T7
- 目标数据类型七
- T8
- 目标数据类型八
- T9
- 目标数据类型九
- T10
- 目标数据类型十
返回值
类型:
OperateResultT1,
T2,
T3,
T4,
T5,
T6,
T7,
T8,
T9,
T10带默认泛型对象的失败结果类
参见