title: Dealing with Sharepoint locked Site Collections
body: <p>I am playing with an application that can crawl the contents of sharepoint server. But I got a problem while working with Locked Site collections.</p>
  
  <p>There are some methods that cannot be used with locked site collections. It throws an exception telling me the contents are blocked. </p>
  
  <p>So I want to handle this more gracefully by checking whether a collection is locked. How can I do this? </p>
  
  <p>Update : One more addition. The site collection has been locked using stsadm NOT programatically. So the <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsite.readlocked.aspx" rel="nofollow noreferrer">SPSite.ReadLocked</a> property has no use.</p>