Thursday 5 January 2012
Set site collection to read only using Object model in sharepoint
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!
Ads by Google
No comments:
Post a Comment
Newer Post
Older Post
Home
View mobile version
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment