Select to view content in your preferred language

Do you need to UnSubscribe from edit events

309
1
11-07-2022 06:17 AM
mody_buchbinder
Occasional Contributor III

I checked this example: https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Editing#subscribe-to-row-events

It shows how to subscribe to EditEvents but it does not show how to unsubscribe.

The unsubscribe uses LayerEvents that is created when you subscribe.

I would like to subscribe some layers in my TOC to edit events.

Then I also subscribe to OnLayersRemoved and in there I need to unsubscribe the removed FeatureLayer 

How do I do it or do I really need to do it since I cannot edit the layer when it in not inside Pro.

Thanks

Mody

0 Kudos
1 Reply
GKmieliauskas
Esri Regular Contributor

Hi,

EditEvents  sample shows how to unsubscribe from editEvents