}
public void MakeCacheEmpty()//清空緩衝
{
System.Web.HttpContext.Current.Application.Lock();
System.Web.HttpContext.Current.Application.Remove(name);
System.Web.HttpContext.Current.Application.UnLock();
}
public string Name//屬性:名稱
{
set
{
name=value;
}
}
public DataTable Values//屬性:緩衝值
{
get
{
return (DataTable)System.Web.HttpContext.Current.Application[name];
}
set
{
if (name!="")
{
strvalue=value;
SetCache(name,strvalue);
}
else{}
}
}
public bool CheckCache()//檢查緩衝
{
bool boolcheck=false;
if (System.Web.HttpContext.Current.Application[name]!=null)
{
boolcheck=true;
}