I know that when an item is recovered from the recycle bin, the ItemAdded event occurs. However, how can I determine if an item has been added from the trash or if it is a new file.
You can check the created date of the item. Items from the recycle bin must have a previous created date.
Items in the cart have a DeletedDate that can be accessed in .BeforeProperties properties
, : . , , . , . , , .
, .
SP2010 properties.AfterProperties , , .
, , , :
if (!properties.AfterProperties.Cast<DictionaryEntry>().Any()) { // From Recycle Bin! } else { // This item is really new. }
MOSS SP2013.
Check the value of the SPItemEventProperties.ListItemId property:
Source: https://habr.com/ru/post/1702242/More articles:How do you produce an arbitrary number in assembly language using the FASM compiler? - assemblyhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1702238/forwarding-incoming-tcp-commands-to-a-function&usg=ALkJrhhpSo6WIWlkqQ7nCuKPHRfnH0k58AThe best way to make the camera move and rotate - openglSize Algorithm - algorithmhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1702241/upload-images-to-sql-server-2005-using-aspnet-mvc&usg=ALkJrhgN9IysdHW1owcERYkd8HJ3UN7TJgКак выполнить захват вызова Xperf на 64-битной ОС? - performanceIs it possible to use svn: externals, ignoring external links for this url? - svnДолжен ли я fsck ext3 на встроенной системе? - linuxRegisterClientScriptBlock without form tag - javascriptmysql nested insert for tagging - mysqlAll Articles