Take the 2-minute tour ×


share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

This should work for you:


I started with web, but you can start wherever you need obviously. Also make sure you look at the appropriate zone.

share|improve this answer
Thanks! This is exactly what I was looking for! –  Alex Thompson Oct 25 '12 at 15:14
add comment

The SPWeb object expose the following boolean :


example :


MSDN : Gets a Boolean value that indicates whether anonymous access is allowed for the website

share|improve this answer
add comment

Your Answer


