// // 摘要: // 按名称获取或设置会话值。 // // 参数: // name: // 会话值的键名。 // // 返回结果: // 具有指定名称的会话状态值;如果该项不存在,则为 null。 public object this[string name] { get { return(RedisProvider.SessionHashGetSync(SessionID, name)); } set { RedisProvider.SessionHashSetSync(SessionID, name, value.ToString()); } }