OperateResultConvertT1, T2, T3, T4, T5, T6, T7, T8, T9 方法 (T1, T2, T3, T4, T5, T6, T7, T8, T9) |
将当前的结果对象转换到指定泛型的结果类对象,如果当前结果为失败,则返回指定泛型的失败结果类对象
Convert the current result object to the result class object of the specified generic type,
if the current result is a failure, then return the result class object of the specified generic type failure
命名空间:
HslCommunication
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult<T1, T2, T3, T4, T5, T6, T7, T8, T9> Convert<T1, T2, T3, T4, T5, T6, T7, T8, T9>(
T1 content1,
T2 content2,
T3 content3,
T4 content4,
T5 content5,
T6 content6,
T7 content7,
T8 content8,
T9 content9
)
Public Function Convert(Of T1, T2, T3, T4, T5, T6, T7, T8, T9) (
content1 As T1,
content2 As T2,
content3 As T3,
content4 As T4,
content5 As T5,
content6 As T6,
content7 As T7,
content8 As T8,
content9 As T9
) As OperateResult(Of T1, T2, T3, T4, T5, T6, T7, T8, T9)
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9>
OperateResult<T1, T2, T3, T4, T5, T6, T7, T8, T9>^ Convert(
T1 content1,
T2 content2,
T3 content3,
T4 content4,
T5 content5,
T6 content6,
T7 content7,
T8 content8,
T9 content9
)
member Convert :
content1 : 'T1 *
content2 : 'T2 *
content3 : 'T3 *
content4 : 'T4 *
content5 : 'T5 *
content6 : 'T6 *
content7 : 'T7 *
content8 : 'T8 *
content9 : 'T9 -> OperateResult<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9>
参数
- content1
- 类型:T1
如果操作成功将赋予的结果内容一 - content2
- 类型:T2
如果操作成功将赋予的结果内容二 - content3
- 类型:T3
如果操作成功将赋予的结果内容三 - content4
- 类型:T4
如果操作成功将赋予的结果内容四 - content5
- 类型:T5
如果操作成功将赋予的结果内容五 - content6
- 类型:T6
如果操作成功将赋予的结果内容六 - content7
- 类型:T7
如果操作成功将赋予的结果内容七 - content8
- 类型:T8
如果操作成功将赋予的结果内容八 - content9
- 类型:T9
如果操作成功将赋予的结果内容九
类型参数
- T1
- 泛型参数一
- T2
- 泛型参数二
- T3
- 泛型参数三
- T4
- 泛型参数四
- T5
- 泛型参数五
- T6
- 泛型参数六
- T7
- 泛型参数七
- T8
- 泛型参数八
- T9
- 泛型参数九
返回值
类型:
OperateResultT1,
T2,
T3,
T4,
T5,
T6,
T7,
T8,
T9最终的结果类对象
参见