Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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");

folder.Update();
share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

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