Select to view content in your preferred language

Prevent a user from editing a feature layer name

107
1
Jump to solution
3 weeks ago
Gfreitag
Emerging Contributor

If there some way to prevent the editing of specific feature layer names using the sdk? Especially if those feature layers are part of a feature service. Perhaps an event that triggers when a user changes a layer name would work as well.

I want to remove potential inconsistent behavior in my add-in in the case the user accidentally renames layers that should remain unmodified.

Thank you in advance!

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
GKmieliauskas
Esri Regular Contributor

Hi,

You can listen for MapMemberPropertiesChangedEvent event to check when user changes a layer name.

View solution in original post

1 Reply
GKmieliauskas
Esri Regular Contributor

Hi,

You can listen for MapMemberPropertiesChangedEvent event to check when user changes a layer name.