0

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

1 Answer 1

1

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy