In Central Administration\Manage Web Applications, there is the ability to enable anonymous access on a web application through the authentication providers. Is there a way to programmatically determine if this option is enabled? Thanks!
In Central Administration\Manage Web Applications, there is the ability to enable anonymous access on
Share
This should work for you:
web.Site.WebApplication.IisSettings[Microsoft.SharePoint.Administration.SPUrlZone.Internet].AllowAnonymousI started with web, but you can start wherever you need obviously. Also make sure you look at the appropriate zone.