Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个应用程序对象。
在 Global.asax 文件中我使用这个:
Application["obj"] = "test";
我如何在静态函数中调用它。
任何帮助表示赞赏。
您可以使用HttpContext.Current属性。
HttpContext.Current.Application["obj"] = "test";