I have a virtual directory name. For this virtual directory i have to find out the application pool associated. Once i get the application pool i have to find out all the vi
Or a new line no looping approach:
Environment.GetEnvironmentVariable("APP_POOL_ID", EnvironmentVariableTarget.Process);