views:

51

answers:

0

The following works. How do I add ReadOnly = true to this newly created folder (Item. Folder. ReadOnly)

SPListItem myItem = properties.ListItem; SPList documentLibrary = myItem.ParentList;

SPListItem folder = documentLibrary.Folders.Add(documentLibrary .RootFolder.ServerRelativeUrl, SPFileSystemObjectType.Folder, "My New Folder"); folder.Update();