A quick tip about setting a site collection to Read-only using the C# object model.
To do this get the SPsite object for example
SPSite _currentSiteColl = new SPSite();
next use the ReadOnly property like below
_currentSiteColl.ReadOnly = true;
thats it!
No comments:
Post a Comment