The for each loop walks through a collection until it is finished. The example below walks through the ASP.NET Request.ServerVariables collection.
www.w3schools.com