Pergunta

I have developed an item event receiver with itemadded and itemupdated event handler using VS 2013 against SP 2013 ON-PREM soln.

Now as per my updated requirements, I need to add a new itemdeleted/itemdeleting and ItemAttachmentAdded(SPItemEventProperties properties) etc kind of event receivers on top of this.

How can I do this using the VS designer surface? is there any shortcut key for this to open up for adding more item event receiver methods on top of existing item event receivers?

I want to get this UI Dialog back again for adding few more methods:

add-this-UI-AGAIN

Foi útil?

Solução

Unfortunately, this dialog is only opened during creating a new event receiver

Meanwhile, you can achieve your goal ( I need to add a new itemdeleted/itemdeleting and ItemAttachmentAdded(SPItemEventProperties properties) etc) easily by doing the following:

  • Right click on your event receiver as shown below > select Properties.

enter image description here

  • All events should be listed as shown below.

enter image description here

  • Just check which event you will need then change it from false to true.

  • The event function should be now added as shown below.

enter image description here

Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange
scroll top