SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What else do I need to add to following code to make sure the folder is hidden or read only?

SPListItem createFolder = myDocLib.Folders.Add(myDocLib.RootFolder.ServerRelativeUrl,  SPFileSystemObjectType.Folder, "Folder444");

share|improve this question
up vote 1 down vote accepted

There is no such thing as a hidden folder in SharePoint.

If you want to make it read only then you will need to break permission inheritance on the folder and modify the permissions.

Detailed answer can be found in the question you cross posted on StackOverflow.

share|improve this answer
Got it. Thanks Muhimbi... – Anonymous Apr 23 '10 at 14:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.