【发布时间】:2019-12-06 06:14:01
【问题描述】:
创建简单的方法,似乎 'cookieOptions' 函数不起作用,我正在获取其参考先决条件的堆栈。
我可以知道需要导入什么引用或模块来启用此功能
这里是示例方法:
public void SetCookie(string key, string value, int? expireTime)
{
CookieOptions option = new CookieOptions(); /// => Missing reference here
}
这是返回的错误:
'CookieOptions' could not be found (are you missing a using directive or an assembly reference?)
任何建议/cmets TIA
【问题讨论】: