需要引用using System.Net.Http; var cookies = actionContext.Request.Headers.GetCookies(); // API 推荐 HttpCookieCollection collection = HttpContext.Current.Request.Cookies;