首页 文章

防止从SharePoint列表项中删除附件

提问于
浏览
0

我们有 custom SharePoint list type . 列表功能的一部分取决于每个列表项的特定附件的存在 . 当 user 意外或故意 deletes the attachment (名为DoNotDelete.fi!)的列表项时我们 functionality for that item is broken . 因此我们希望 prevent user from being able to delete that particular list item attachment (但应该能够编辑列表项) .

这可以通过使用 EventReceiver for this list item 来实现吗?鉴于附件存储在列表的RootFolder中,可能EventReceiver不需要附加到列表项而是其他地方吗?

1 回答

相关问题