继承 System.Web.SessionState下的IReadOnlySessionState,IRequiresSessionState

只读的话只要去掉IReadOnlySessionState接口


 XXxxxxxx
{
    public class ColorPickerTranslateHttpHandler: IHttpHandler,IReadOnlySessionState,IRequiresSessionState
    {

    }

    
public void ProcessRequest (HttpContext context)
       {
        }

       
/// <summary>
       
/// 获取一个值,该值指示其他请求是否可以使用 IHttpHandler 实例。
       
/// </summary>
       public bool IsReusable
       {
        
get
        {
         
return false;
        }
       }

}

相关文章:

  • 2021-08-05
  • 2022-03-02
  • 2021-12-30
  • 2021-07-26
  • 2022-12-23
  • 2021-09-19
  • 2021-06-13
  • 2021-11-15
猜你喜欢
  • 2021-06-16
  • 2021-10-09
  • 2021-10-08
  • 2022-12-23
  • 2022-03-08
  • 2021-08-19
相关资源
相似解决方案