문제

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();
도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top