Pergunta

I have an EventReceiver associated to DocLib template id, triggered at every ItemUpdate. Everytime an SPListItem is publish I want to execute my code.

(Required check out and Content approval are turned off)

So, is the type ItemUpdated the best one in this case? What the best way to check if item was publish?

spregards

Foi útil?

Solução

In ItemUpdated check

properties.ListItem.File.MinorVersion == 0
Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange
scroll top