How to get an specific header value from the HttpResponseMessage
问题 I'm making an HTTP call. My response contains a session code X-BB-SESSION in the header section of the HttpResponseMessage object. How do I get that specific header value? I am using a foreach statement to iterate through all the headers (MSDN link). However the compiler keeps saying that it cannot be done: foreach statement cannot operate on variables of type System.net.http.headers.cachecontrolheadervalue because 'System.net.http.headers.cachecontrolheadervalue' doesn't contain a public