HslReflectionHelperReadAsyncT 方法 (RedisClient) |
命名空间:
HslCommunication.Reflection
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult<T>> ReadAsync<T>(
RedisClient redis
)
where T : class, new()
Public Shared Function ReadAsync(Of T As {Class, New}) (
redis As RedisClient
) As Task(Of OperateResult(Of T))
public:
generic<typename T>
where T : ref class, gcnew()
static Task<OperateResult<T>^>^ ReadAsync(
RedisClient^ redis
)
static member ReadAsync :
redis : RedisClient -> Task<OperateResult<'T>> when 'T : not struct, new()
参数
- redis
- 类型:HslCommunication.Enthernet.RedisRedisClient
Redis的数据对象
类型参数
- T
- 自定义的数据类型对象
返回值
类型:
TaskOperateResultT包含是否成功的结果对象
参见