Skip to main content
added 107 characters in body
Source Link
Alex Boev
  • 3.3k
  • 16
  • 13

I've quickly checked on 2010 version - there's the SPItemEventProperties.BeforeUrl property (and corresponding SPItemEventProperties.AfterUrl property). On ItemAttachmentDeleting event SPItemEventProperties.BeforeUrl contains the url of the targeted attachment. I hope it works similar in 2007 version.

Unfortunately in the 2010 version ItemAttachmentDeleting event is being fired once for each attachment.

I've quickly checked on 2010 version - there's the SPItemEventProperties.BeforeUrl property (and corresponding SPItemEventProperties.AfterUrl property). On ItemAttachmentDeleting event SPItemEventProperties.BeforeUrl contains the url of the targeted attachment. I hope it works similar in 2007 version.

I've quickly checked on 2010 version - there's the SPItemEventProperties.BeforeUrl property (and corresponding SPItemEventProperties.AfterUrl property). On ItemAttachmentDeleting event SPItemEventProperties.BeforeUrl contains the url of the targeted attachment. I hope it works similar in 2007 version.

Unfortunately in the 2010 version ItemAttachmentDeleting event is being fired once for each attachment.

Source Link
Alex Boev
  • 3.3k
  • 16
  • 13

I've quickly checked on 2010 version - there's the SPItemEventProperties.BeforeUrl property (and corresponding SPItemEventProperties.AfterUrl property). On ItemAttachmentDeleting event SPItemEventProperties.BeforeUrl contains the url of the targeted attachment. I hope it works similar in 2007 version.